Skip to content

Commit

Permalink
Try not setting extra fields
Browse files Browse the repository at this point in the history
  • Loading branch information
slevenick committed Aug 28, 2019
1 parent 6f2049e commit 34b017f
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions templates/terraform/iam_policy.go.erb
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,6 @@ func <%= resource_name -%>IamUpdaterProducer(d *schema.ResourceData, config *Con
for k, v := range m {
values[k] = v
}
<%# If we didn't find the URL qualifier in the resource short/long name then try to set from config -%>
<% resource_params.each do |param| -%>
if _, found := values["<%= param -%>"]; !found {
if v, ok := d.GetOkExists("<%= param.underscore -%>"); ok {
values["<%= param -%>"] = v.(string)
}
}
<% end -%>

u := &<%= resource_name -%>IamUpdater{
<% resource_params.each do |param| -%>
Expand Down

0 comments on commit 34b017f

Please sign in to comment.