Skip to content

Commit 3afc14c

Browse files
authored
fix: Prompt for non-modifiable fields (#2036)
* fix: Prompt for non-modifiable fields * feat: add changelog * feat: add changelog
1 parent 3a14c86 commit 3afc14c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.changelog/2036.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_clb_instance: `master_zone_id`, `slave_zone_id`, `project_id`, `vpc_id`, `subnet_id`, `address_ip_version`, `bandwidth_package_id`, `snat_pro`, `zone_id` fields cannot be modified and an error message is displayed
3+
```

tencentcloud/resource_tc_clb_instance.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@ func resourceTencentCloudClbInstanceUpdate(d *schema.ResourceData, meta interfac
795795
request.SnatPro = &snatPro
796796
}
797797

798-
immutableArgs := []string{"snat_ips", "dynamic_vip"}
798+
immutableArgs := []string{"snat_ips", "dynamic_vip", "master_zone_id", "slave_zone_id", "project_id", "vpc_id", "subnet_id", "address_ip_version", "bandwidth_package_id", "snat_pro", "zone_id"}
799799

800800
for _, v := range immutableArgs {
801801
if d.HasChange(v) {

0 commit comments

Comments
 (0)