Skip to content

Commit 09de668

Browse files
committed
修复切换image时tag没有切换的问题
1 parent 26d2a9f commit 09de668

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

alibabacloudstack/resource_apsarastack_ecs_instance.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ func resourceAlibabacloudStackInstanceUpdate(d *schema.ResourceData, meta interf
651651
return errmsgs.WrapError(err)
652652
}
653653

654-
if d.HasChanges("system_disk_tags", "system_disk_id", "tags") {
654+
if d.HasChanges("system_disk_tags", "system_disk_id", "image_id", "tags") {
655655
var oraw, nraw map[string]interface{}
656656
system_disks, err := ecsService.DescribeInstanceDisksByType(d.Id(), client.ResourceGroup, "system")
657657
if err != nil {

0 commit comments

Comments
 (0)