Skip to content

Commit

Permalink
fix for count deduplication
Browse files Browse the repository at this point in the history
  • Loading branch information
LewisKSaint committed Sep 28, 2023
1 parent 0b56466 commit e87272e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/command/configgenerator.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,10 @@ func ParseTerraformObject(ctx context.Context, client semp.Client, resourceName
if objectNameExists {
totalOccurrence = count + 1
}
ObjectNamesCount[objectName] = totalOccurrence
objectName = objectName + "_" + fmt.Sprint(totalOccurrence)
tfObject[objectName] = resourceValues[i]
tfObjectSempDataResponse[objectName] = sempData[i]
ObjectNamesCount[objectName] = totalOccurrence
}
return GeneratorTerraformOutput{
TerraformOutput: tfObject,
Expand Down

0 comments on commit e87272e

Please sign in to comment.