Skip to content

Commit

Permalink
fix(cbs): [121230828] tencentcloud_cbs_storage update tag (#3020)
Browse files Browse the repository at this point in the history
* add

* add
  • Loading branch information
SevenEarth authored Dec 16, 2024
1 parent 496797c commit 0e52600
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
3 changes: 3 additions & 0 deletions .changelog/3020.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
resource/tencentcloud_cbs_storage: update `tag`
```
11 changes: 0 additions & 11 deletions tencentcloud/services/cbs/resource_tc_cbs_storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0e52600

Please sign in to comment.