From 1567ac0879493f859298f8f2b1152ba41204dfd6 Mon Sep 17 00:00:00 2001 From: Vincent Roseberry Date: Thu, 3 May 2018 17:44:36 -0700 Subject: [PATCH] Store region name only for vpn gateway (#1431) --- google/resource_compute_vpn_gateway.go | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/google/resource_compute_vpn_gateway.go b/google/resource_compute_vpn_gateway.go index d5ecfe02..97229bd7 100644 --- a/google/resource_compute_vpn_gateway.go +++ b/google/resource_compute_vpn_gateway.go @@ -1,17 +1,4 @@ -// ---------------------------------------------------------------------------- -// -// *** AUTO GENERATED CODE *** AUTO GENERATED CODE *** -// -// ---------------------------------------------------------------------------- -// -// This file is automatically generated by Magic Modules and manual -// changes will be clobbered when the file is regenerated. -// -// Please read more about how to change this file in -// .github/CONTRIBUTING.md. -// -// ---------------------------------------------------------------------------- - +// TODO(https://github.com/GoogleCloudPlatform/magic-modules/issues/156): Re-enable code generation for this resource package google import ( @@ -259,7 +246,7 @@ func flattenComputeVpnGatewayNetwork(v interface{}) interface{} { } func flattenComputeVpnGatewayRegion(v interface{}) interface{} { - return v + return NameFromSelfLinkStateFunc(v) } func expandComputeVpnGatewayDescription(v interface{}, d *schema.ResourceData, config *Config) (interface{}, error) {