Skip to content

Commit 50d5c2c

Browse files
author
yuanhaojin
committed
simplify codes in tag updating part
1 parent df21869 commit 50d5c2c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tencentcloud/resource_tc_cfs_file_system.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,7 @@ func resourceTencentCloudCfsFileSystemUpdate(d *schema.ResourceData, meta interf
297297

298298
tcClient := meta.(*TencentCloudClient).apiV3Conn
299299
tagService := &TagService{client: tcClient}
300-
region := meta.(*TencentCloudClient).apiV3Conn.Region
301-
resourceName := BuildTagResourceName("cfs", "filesystem", region, d.Id())
300+
resourceName := BuildTagResourceName("cfs", "filesystem", tcClient.Region, d.Id())
302301
err := tagService.ModifyTags(ctx, resourceName, replaceTags, deleteTags)
303302
if err != nil {
304303
return err

0 commit comments

Comments
 (0)