-
Notifications
You must be signed in to change notification settings - Fork 561
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
resource/alicloud_ess_scaling_group: add alb_server_group & resource_group_id and disable group retry fault tolerance. #7273
Conversation
@@ -336,67 +390,85 @@ func resourceAliyunEssScalingGroupUpdate(d *schema.ResourceData, meta interface{ | |||
} | |||
d.SetPartial("tags") | |||
} | |||
if d.HasChange("resource_group_id") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ResourceGroupId 应该不允许传空值的,可以测试看看
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我这边测试增加 ResourceGroupId 设置“” 也是可以跑通测试的
ResourceGroupId 不传的话,会使用默认资源组Id
} | ||
|
||
if d.HasChange("health_check_type") { | ||
request.HealthCheckType = d.Get("health_check_type").(string) | ||
d.SetPartial("health_check_type") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
把所有的 d.SetPartial 去掉,已经废弃即将移除了
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
"removal_policies": []string{"OldestInstance", "NewestInstance"}, | ||
"launch_template_id": "${alicloud_ecs_launch_template.default1.id}", | ||
"launch_template_version": "Latest", | ||
"alb_server_group": []map[string]string{{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
增加一步测试alb_server_group置空
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
…group_id and disable group retry fault tolerance.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved
…_group_id and disable group retry fault tolerance.