Skip to content

Commit bb3e6fb

Browse files
tongyimingmikatong
andauthored
fix key_ids (#1883)
* fix key_ids * add changelog --------- Co-authored-by: mikatong <mikatong@tencent.com>
1 parent c35fcf5 commit bb3e6fb

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.changelog/1883.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:bug
2+
resource/tencentcloud_instance: change key_ids null value
3+
```

tencentcloud/resource_tc_instance.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1052,7 +1052,7 @@ func resourceTencentCloudInstanceRead(d *schema.ResourceData, meta interface{})
10521052
_ = d.Set("key_ids", instance.LoginSettings.KeyIds)
10531053
} else {
10541054
_ = d.Set("key_name", "")
1055-
_ = d.Set("key_ids", []*string{helper.String("")})
1055+
_ = d.Set("key_ids", []*string{})
10561056
}
10571057
if instance.LoginSettings.KeepImageLogin != nil {
10581058
_ = d.Set("keep_image_login", *instance.LoginSettings.KeepImageLogin == CVM_IMAGE_LOGIN)

0 commit comments

Comments
 (0)