From ba325e618267107779fd2ce1e0afcb3d77fd2015 Mon Sep 17 00:00:00 2001 From: The Magician Date: Tue, 20 Apr 2021 17:36:20 -0700 Subject: [PATCH] fixed update on parent (#4712) (#8964) * fixed update on parent * removed the added test Signed-off-by: Modular Magician --- .changelog/4712.txt | 6 ++++++ google/resource_data_catalog_tag.go | 1 + 2 files changed, 7 insertions(+) create mode 100644 .changelog/4712.txt diff --git a/.changelog/4712.txt b/.changelog/4712.txt new file mode 100644 index 00000000000..9ec7461027f --- /dev/null +++ b/.changelog/4712.txt @@ -0,0 +1,6 @@ +```release-note:breaking-change +datacatalog: updating `parent` in `google_data_catalog_tag` will now recreate the resource +``` +```release-note:bug +datacatalog: fixed an issue where `parent` in `google_data_catalog_tag` attempted to update the resource when change instead of recreating it +``` diff --git a/google/resource_data_catalog_tag.go b/google/resource_data_catalog_tag.go index d91950cef8a..da172cb0205 100644 --- a/google/resource_data_catalog_tag.go +++ b/google/resource_data_catalog_tag.go @@ -116,6 +116,7 @@ For attaching a tag to a nested column, use '.' to separate the column names. Ex "parent": { Type: schema.TypeString, Optional: true, + ForceNew: true, Description: `The name of the parent this tag is attached to. This can be the name of an entry or an entry group. If an entry group, the tag will be attached to all entries in that group.`, },