From 849780eac69420eced595078bd909bc3c077a1ea Mon Sep 17 00:00:00 2001 From: Sam Levenick Date: Tue, 29 Oct 2019 13:30:52 -0700 Subject: [PATCH] Add back encoder that always sends autoCreateSubnetworks --- products/compute/terraform.yaml | 1 + templates/terraform/encoders/network.erb | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 templates/terraform/encoders/network.erb diff --git a/products/compute/terraform.yaml b/products/compute/terraform.yaml index 491db2395794..0a4f96bc2f02 100644 --- a/products/compute/terraform.yaml +++ b/products/compute/terraform.yaml @@ -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}}" diff --git a/templates/terraform/encoders/network.erb b/templates/terraform/encoders/network.erb new file mode 100644 index 000000000000..74f3566a0e7e --- /dev/null +++ b/templates/terraform/encoders/network.erb @@ -0,0 +1,3 @@ +obj["autoCreateSubnetworks"] = d.Get("auto_create_subnetworks") + +return obj, nil