From bfcbfd2b116e56dffc78635cf8833724120bdf17 Mon Sep 17 00:00:00 2001 From: Modular Magician Date: Fri, 14 May 2021 15:07:35 +0000 Subject: [PATCH] remove ForceNew on initial_group_config (#4780) Signed-off-by: Modular Magician --- .changelog/4780.txt | 3 +++ google-beta/resource_cloud_identity_group.go | 1 - google-beta/resource_dataproc_cluster_test.go | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 .changelog/4780.txt diff --git a/.changelog/4780.txt b/.changelog/4780.txt new file mode 100644 index 0000000000..40882ee49b --- /dev/null +++ b/.changelog/4780.txt @@ -0,0 +1,3 @@ +```release-note:bug +cloudidentity: fixed recreation on the `initial_group_config` of `google_cloud_identity_group` +``` diff --git a/google-beta/resource_cloud_identity_group.go b/google-beta/resource_cloud_identity_group.go index 832b8d9e01..876f91eb8f 100644 --- a/google-beta/resource_cloud_identity_group.go +++ b/google-beta/resource_cloud_identity_group.go @@ -116,7 +116,6 @@ Must not be longer than 4,096 characters.`, "initial_group_config": { Type: schema.TypeString, Optional: true, - ForceNew: true, ValidateFunc: validation.StringInSlice([]string{"INITIAL_GROUP_CONFIG_UNSPECIFIED", "WITH_INITIAL_OWNER", "EMPTY", ""}, false), Description: `The initial configuration options for creating a Group. diff --git a/google-beta/resource_dataproc_cluster_test.go b/google-beta/resource_dataproc_cluster_test.go index e2592b3a32..ab4878c979 100644 --- a/google-beta/resource_dataproc_cluster_test.go +++ b/google-beta/resource_dataproc_cluster_test.go @@ -13,8 +13,9 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" - dataproc "google.golang.org/api/dataproc/v1beta2" "google.golang.org/api/googleapi" + + dataproc "google.golang.org/api/dataproc/v1beta2" ) func TestDataprocExtractInitTimeout(t *testing.T) {