Skip to content

Commit

Permalink
Remove strings.ReplaceAll
Browse files Browse the repository at this point in the history
  • Loading branch information
c2thorn committed Jan 9, 2020
1 parent d290886 commit a21ec40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/terraform/sweeper_file.go.erb
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func testSweep<%= sweeper_name -%>(region string) error {
}
zoneSegs := strings.Split(obj["zone"].(string),"/")
zone := zoneSegs[len(zoneSegs)-1]
deleteTemplate = strings.ReplaceAll(deleteTemplate, "{{zone}}", zone)
deleteTemplate = strings.Replace(deleteTemplate, "{{zone}}", zone, -1)

<% end -%>
deleteUrl, err := replaceVars(d, config, deleteTemplate)
Expand Down

0 comments on commit a21ec40

Please sign in to comment.