Merge pull request #2147 from mzupan/fix-asg-health-checkswitch

Switching the healthcheck shouldn't cause a refresh of the resource
pull/2154/head
Paul Hinze 11 years ago
commit 060e8882bd

@ -79,7 +79,6 @@ func resourceAwsAutoscalingGroup() *schema.Resource {
Type: schema.TypeString,
Optional: true,
Computed: true,
ForceNew: true,
},
"availability_zones": &schema.Schema{
@ -241,6 +240,11 @@ func resourceAwsAutoscalingGroupUpdate(d *schema.ResourceData, meta interface{})
opts.HealthCheckGracePeriod = aws.Long(int64(d.Get("health_check_grace_period").(int)))
}
if d.HasChange("health_check_type") {
opts.HealthCheckGracePeriod = aws.Long(int64(d.Get("health_check_grace_period").(int)))
opts.HealthCheckType = aws.String(d.Get("health_check_type").(string))
}
if err := setAutoscalingTags(conn, d); err != nil {
return err
} else {

Loading…
Cancel
Save