Skip to content

Commit f0cc8cd

Browse files
committed
Merge remote-tracking branch 'origin/main'
# Conflicts: # cmd/internal/model/terraform/terraform_provider.go
2 parents 0e09c88 + 472f4c8 commit f0cc8cd

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

cmd/convert_project_js_wasm.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ func processJavaScriptResources(resources []converters.ResourceDetails) (map[str
202202
return resourcesSlice[i].ResourceType < resourcesSlice[j].ResourceType
203203
})
204204

205-
for _, r := range resourcesSlice {
205+
for index, r := range resourcesSlice {
206206
// Some resources are already resolved by their parent, but exist in the resource details map as a lookup.
207207
// In these cases, ToHclByProjectId is nil.
208208
if r.ToHcl == nil {
@@ -216,7 +216,7 @@ func processJavaScriptResources(resources []converters.ResourceDetails) (map[str
216216
}
217217

218218
if len(strings.TrimSpace(hcl)) != 0 {
219-
fileMap[r.FileName] = hcl
219+
fileMap["tf"+fmt.Sprintln(index)+".tf"] = hcl
220220
}
221221
}
222222

cmd/internal/converters/deployment_process_converter.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ func (c DeploymentProcessConverter) toHcl(resource octopus.DeploymentProcess, re
136136
AcquisitionLocation: p.AcquisitionLocation,
137137
ExtractDuringDeployment: &p.ExtractDuringDeployment,
138138
FeedId: dependencies.GetResourcePointer("Feeds", p.FeedId),
139-
Id: p.Id,
140139
Properties: c.replaceIds(p.Properties, dependencies),
141140
})
142141
} else {
@@ -146,7 +145,6 @@ func (c DeploymentProcessConverter) toHcl(resource octopus.DeploymentProcess, re
146145
AcquisitionLocation: p.AcquisitionLocation,
147146
ExtractDuringDeployment: nil,
148147
FeedId: dependencies.GetResourcePointer("Feeds", p.FeedId),
149-
Id: p.Id,
150148
Properties: c.replaceIds(p.Properties, dependencies),
151149
}
152150
}

wasm/convert_project.wasm

450 KB
Binary file not shown.

0 commit comments

Comments
 (0)