Skip to content

Commit fb2e45b

Browse files
authored
fix(as): [137364923] tencentcloud_as_scaling_config fix the issue of changing password (#3122)
* add * add
1 parent b6c5991 commit fb2e45b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.changelog/3122.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
resource/tencentcloud_as_scaling_config: fix the issue of changing password
3+
```

tencentcloud/services/as/resource_tc_as_scaling_config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -851,6 +851,7 @@ func resourceTencentCloudAsScalingConfigUpdate(d *schema.ResourceData, meta inte
851851
}
852852

853853
if d.HasChange("password") || d.HasChange("key_ids") || d.HasChange("keep_image_login") {
854+
request.LoginSettings = &as.LoginSettings{}
854855
if v, ok := d.GetOk("password"); ok {
855856
request.LoginSettings.Password = helper.String(v.(string))
856857
}

0 commit comments

Comments
 (0)