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)