Skip to content

Commit

Permalink
rename function again
Browse files Browse the repository at this point in the history
  • Loading branch information
emilymye committed Mar 27, 2019
1 parent 22b305b commit b0abcf9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/terraform/resource.erb
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ func resource<%= resource_name -%>Read(d *schema.ResourceData, meta interface{})
}

<% if object.nested_query -%>
res, err = getNestedResource<%= resource_name -%>(d, meta, res)
res, err = flattenNested<%= resource_name -%>(d, meta, res)
if err != nil {
return err
}
Expand Down Expand Up @@ -611,7 +611,7 @@ func resource<%= resource_name -%>UpdateEncoder(d *schema.ResourceData, meta int
<% end -%>

<% if object.nested_query -%>
func getNestedResource<%= resource_name -%>(d *schema.ResourceData, meta interface{}, res map[string]interface{}) (map[string]interface{}, error) {
func flattenNested<%= resource_name -%>(d *schema.ResourceData, meta interface{}, res map[string]interface{}) (map[string]interface{}, error) {
<%= compile_template('templates/terraform/nested_query.go.erb',
object: object,
settable_properties: object.settable_properties,
Expand Down

0 comments on commit b0abcf9

Please sign in to comment.