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: Fixed weighted_capacity and spot_price_limit is null. #7418

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fuliu-zln
Copy link
Contributor

…rice_limit is null.

@fuliu-zln fuliu-zln changed the title resource/alicloud_ess_scaling_group: fix weighted_capacity and spot_price_limit is null. resource/alicloud_ess_scaling_group: Fixed weighted_capacity and spot_price_limit is null. Jul 3, 2024
@fuliu-zln fuliu-zln force-pushed the fix/group branch 2 times, most recently from 507ccb8 to 9e084b4 Compare July 3, 2024 12:11
@@ -352,12 +352,16 @@ func resourceAliyunEssScalingGroupRead(d *schema.ResourceData, meta interface{})
result := make([]map[string]interface{}, 0)
for _, i := range v.(map[string]interface{})["LaunchTemplateOverride"].([]interface{}) {
r := i.(map[string]interface{})
f, _ := r["SpotPriceLimit"].(json.Number).Float64()
Copy link
Collaborator

Choose a reason for hiding this comment

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

这些变量用可以读得懂的方式命名吧,这种以后其他人很难维护

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

@fuliu-zln fuliu-zln force-pushed the fix/group branch 4 times, most recently from d20275e to 3513db9 Compare July 8, 2024 08:09
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.

None yet

2 participants