Skip to content

Commit

Permalink
make decoder generic
Browse files Browse the repository at this point in the history
  • Loading branch information
emilymye committed Jun 13, 2019
1 parent bf5a06b commit c37c6cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion products/compute/terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,7 @@ overrides: !ruby/object:Overrides::ResourceOverrides
ignore_read: true
custom_code: !ruby/object:Provider::Terraform::CustomCode
pre_delete: templates/terraform/pre_delete/compute_network_endpoint.go.erb
decoder: templates/terraform/decoders/compute_network_endpoint.go.erb
decoder: templates/terraform/decoders/unwrap_resource.go.erb
encoder: templates/terraform/encoders/compute_network_endpoint.go.erb
NetworkEndpointGroup: !ruby/object:Overrides::Terraform::ResourceOverride
examples:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-%>
v, ok := res["networkEndpoint"]
v, ok := res["<%= object.name.camelize(:lower) %>"]
if !ok || v == nil {
return res, nil
}
Expand Down

0 comments on commit c37c6cb

Please sign in to comment.