From 98bae7579775e4d53f7a166b0c50b74bb7fa3208 Mon Sep 17 00:00:00 2001 From: Modular Magician Date: Thu, 30 Jun 2022 18:07:55 +0000 Subject: [PATCH] Change filestore network field to a resourceref (#6175) Signed-off-by: Modular Magician --- .changelog/6175.txt | 3 +++ google/resource_filestore_instance.go | 7 ++++--- 2 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 .changelog/6175.txt diff --git a/.changelog/6175.txt b/.changelog/6175.txt new file mode 100644 index 00000000000..45aaa58e21f --- /dev/null +++ b/.changelog/6175.txt @@ -0,0 +1,3 @@ +```release-note:bug +filestore: fixed a case where `google_filestore_instance.networks.network` would incorrectly see a diff between state and config when the network `id` format was used +``` diff --git a/google/resource_filestore_instance.go b/google/resource_filestore_instance.go index 23cbaf5bcb2..b085c66a1fb 100644 --- a/google/resource_filestore_instance.go +++ b/google/resource_filestore_instance.go @@ -152,9 +152,10 @@ IP addresses assigned. Possible values: ["ADDRESS_MODE_UNSPECIFIED", "MODE_IPV4" }, }, "network": { - Type: schema.TypeString, - Required: true, - ForceNew: true, + Type: schema.TypeString, + Required: true, + ForceNew: true, + DiffSuppressFunc: compareSelfLinkOrResourceName, Description: `The name of the GCE VPC network to which the instance is connected.`, },