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

Switching the healthcheck shouldn't cause a refresh of the resource
This commit is contained in:
Paul Hinze 2015-05-30 07:10:56 -05:00
commit 060e8882bd
1 changed files with 5 additions and 1 deletions

View File

@ -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 {