Skip to content

Commit

Permalink
Add back encoder that always sends autoCreateSubnetworks (#2558)
Browse files Browse the repository at this point in the history
  • Loading branch information
slevenick authored Oct 29, 2019
1 parent ce29f48 commit c2f821d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions products/compute/terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -917,6 +917,7 @@ overrides: !ruby/object:Overrides::ResourceOverrides
default_from_api: true
custom_code: !ruby/object:Provider::Terraform::CustomCode
post_create: templates/terraform/post_create/compute_network_delete_default_route.erb
encoder: templates/terraform/encoders/network.erb
extra_schema_entry: templates/terraform/extra_schema_entry/network.erb
NetworkEndpoint: !ruby/object:Overrides::Terraform::ResourceOverride
id_format: "{{project}}/{{zone}}/{{network_endpoint_group}}/{{instance}}/{{ip_address}}/{{port}}"
Expand Down
3 changes: 3 additions & 0 deletions templates/terraform/encoders/network.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
obj["autoCreateSubnetworks"] = d.Get("auto_create_subnetworks")

return obj, nil

0 comments on commit c2f821d

Please sign in to comment.