From 64016be4051c93b9ff9550570305d5ab022a6fc3 Mon Sep 17 00:00:00 2001 From: SevenEarth <391613297@qq.com> Date: Wed, 12 Feb 2025 15:12:57 +0800 Subject: [PATCH 1/2] add --- tencentcloud/services/as/resource_tc_as_scaling_config.go | 1 + 1 file changed, 1 insertion(+) diff --git a/tencentcloud/services/as/resource_tc_as_scaling_config.go b/tencentcloud/services/as/resource_tc_as_scaling_config.go index 7e9ec86b79..16c5a1648b 100644 --- a/tencentcloud/services/as/resource_tc_as_scaling_config.go +++ b/tencentcloud/services/as/resource_tc_as_scaling_config.go @@ -851,6 +851,7 @@ func resourceTencentCloudAsScalingConfigUpdate(d *schema.ResourceData, meta inte } if d.HasChange("password") || d.HasChange("key_ids") || d.HasChange("keep_image_login") { + request.LoginSettings = &as.LoginSettings{} if v, ok := d.GetOk("password"); ok { request.LoginSettings.Password = helper.String(v.(string)) } From 2292380c9b935080110f44f649eff147cafca3bc Mon Sep 17 00:00:00 2001 From: SevenEarth <391613297@qq.com> Date: Wed, 12 Feb 2025 15:15:16 +0800 Subject: [PATCH 2/2] add --- .changelog/3122.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .changelog/3122.txt diff --git a/.changelog/3122.txt b/.changelog/3122.txt new file mode 100644 index 0000000000..0ce9aa597a --- /dev/null +++ b/.changelog/3122.txt @@ -0,0 +1,3 @@ +```release-note:enhancement +resource/tencentcloud_as_scaling_config: fix the issue of changing password +```