Skip to content
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

Merged
merged 1 commit into from
May 23, 2024

Conversation

fuliu-zln
Copy link
Contributor

…_group_id and disable group retry fault tolerance.

@@ -336,67 +390,85 @@ func resourceAliyunEssScalingGroupUpdate(d *schema.ResourceData, meta interface{
}
d.SetPartial("tags")
}
if d.HasChange("resource_group_id") {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ResourceGroupId 应该不允许传空值的,可以测试看看

Copy link
Contributor Author

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")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

把所有的 d.SetPartial 去掉,已经废弃即将移除了

Copy link
Contributor Author

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{{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

增加一步测试alb_server_group置空

Copy link
Contributor Author

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.
Copy link
Collaborator

@ChenHanZhang ChenHanZhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved

@ChenHanZhang ChenHanZhang merged commit 85ad31c into aliyun:master May 23, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants