mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-20 11:48:24 -06:00
Merge pull request #1262 from hashicorp/b-aws-asg-fix-health-check-type
provider/aws: Fix issue in AWS AutoScaling Group and health_check_type
This commit is contained in:
commit
75837beb3d
@ -137,7 +137,7 @@ func resourceAwsAutoscalingGroupCreate(d *schema.ResourceData, meta interface{})
|
||||
autoScalingGroupOpts.DefaultCooldown = aws.Integer(v.(int))
|
||||
}
|
||||
|
||||
if v, ok := d.GetOk("health_check"); ok && v.(string) != "" {
|
||||
if v, ok := d.GetOk("health_check_type"); ok && v.(string) != "" {
|
||||
autoScalingGroupOpts.HealthCheckType = aws.String(v.(string))
|
||||
}
|
||||
|
||||
|
@ -130,7 +130,7 @@ func testAccCheckAWSAutoScalingGroupAttributes(group *autoscaling.AutoScalingGro
|
||||
}
|
||||
|
||||
if *group.HealthCheckType != "ELB" {
|
||||
return fmt.Errorf("Bad health_check_type: %s", *group.HealthCheckType)
|
||||
return fmt.Errorf("Bad health_check_type,\nexpected: %s\ngot: %s", "ELB", *group.HealthCheckType)
|
||||
}
|
||||
|
||||
if *group.HealthCheckGracePeriod != 300 {
|
||||
|
Loading…
Reference in New Issue
Block a user