From 0e5260036960fa618f94cbc51bbf33d2154e6608 Mon Sep 17 00:00:00 2001 From: SevenEarth <45937856+SevenEarth@users.noreply.github.com> Date: Mon, 16 Dec 2024 19:32:26 +0800 Subject: [PATCH] fix(cbs): [121230828] `tencentcloud_cbs_storage` update `tag` (#3020) * add * add --- .changelog/3020.txt | 3 +++ tencentcloud/services/cbs/resource_tc_cbs_storage.go | 11 ----------- 2 files changed, 3 insertions(+), 11 deletions(-) create mode 100644 .changelog/3020.txt diff --git a/.changelog/3020.txt b/.changelog/3020.txt new file mode 100644 index 0000000000..65979a76cf --- /dev/null +++ b/.changelog/3020.txt @@ -0,0 +1,3 @@ +```release-note:enhancement +resource/tencentcloud_cbs_storage: update `tag` +``` \ No newline at end of file diff --git a/tencentcloud/services/cbs/resource_tc_cbs_storage.go b/tencentcloud/services/cbs/resource_tc_cbs_storage.go index 1cce1a47aa..c832b69b05 100644 --- a/tencentcloud/services/cbs/resource_tc_cbs_storage.go +++ b/tencentcloud/services/cbs/resource_tc_cbs_storage.go @@ -195,17 +195,6 @@ func resourceTencentCloudCbsStorageCreate(d *schema.ResourceData, meta interface } } - if v := helper.GetTags(d, "tags"); len(v) > 0 { - for tagKey, tagValue := range v { - tag := cbs.Tag{ - Key: helper.String(tagKey), - Value: helper.String(tagValue), - } - - request.Tags = append(request.Tags, &tag) - } - } - storageId := "" err := resource.Retry(tccommon.WriteRetryTimeout, func() *resource.RetryError { response, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseCbsClient().CreateDisks(request)