From 799a9dbd7d4f8816230edac41657676108ae5f12 Mon Sep 17 00:00:00 2001 From: Sam Levenick Date: Tue, 26 Nov 2019 14:12:35 -0800 Subject: [PATCH] Convert to v1 self link before saving to state --- .../terraform/resources/resource_compute_network_peering.go.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/terraform/resources/resource_compute_network_peering.go.erb b/third_party/terraform/resources/resource_compute_network_peering.go.erb index 1941de2ba13b..28cf5f143b1d 100644 --- a/third_party/terraform/resources/resource_compute_network_peering.go.erb +++ b/third_party/terraform/resources/resource_compute_network_peering.go.erb @@ -222,7 +222,7 @@ func resourceComputeNetworkPeeringImport(d *schema.ResourceData, meta interface{ if err != nil { return nil, err } - d.Set("network", fmt.Sprintf(urlTemplate, splits[0], splits[1])) + d.Set("network", ConvertSelfLinkToV1(fmt.Sprintf(urlTemplate, splits[0], splits[1]))) d.Set("name", splits[2]) // Replace import id for the resource id