Skip to content

Commit f592fe2

Browse files
authored
Merge pull request #482 from oliverpei/master
fix cvm set key_name error
2 parents 5aad453 + 9740136 commit f592fe2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ ENHANCEMENTS:
1313
* Resource: `tencentcloud_mongodb_sharding_instance` supports prepaid type, new mongodb SDK version `2019-07-25` and standby instance.
1414
* Resource: `tencentcloud_security_group_lite_rule` refine update process and doc.
1515

16+
BUG FIXES:
17+
18+
* Resource: `tencentcloud_instance` fix set `key_name` error.
19+
1620
## 1.39.0 (July 18, 2020)
1721

1822
ENHANCEMENTS:

tencentcloud/resource_tc_instance.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ func resourceTencentCloudInstanceRead(d *schema.ResourceData, meta interface{})
716716
_ = d.Set("public_ip", instance.PublicIpAddresses[0])
717717
}
718718
if len(instance.LoginSettings.KeyIds) > 0 {
719-
_ = d.Set("key_name", instance.LoginSettings.KeyIds)
719+
_ = d.Set("key_name", instance.LoginSettings.KeyIds[0])
720720
}
721721
if *instance.InstanceState == CVM_STATUS_STOPPED {
722722
_ = d.Set("running_flag", false)

0 commit comments

Comments
 (0)