provider/aws: Fix issue in AWS AutoScaling Group where health_check_type is not set correctly
This commit is contained in:
parent
d3135c1b2b
commit
f97343dea1
|
@ -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