Merge pull request #2510 from CpuID/cpuid_gh2509

default_cooldown change shouldnt force new resource
This commit is contained in:
Paul Hinze 2015-06-26 08:55:36 -05:00
commit d82d803690
1 changed files with 4 additions and 1 deletions

View File

@ -59,7 +59,6 @@ func resourceAwsAutoscalingGroup() *schema.Resource {
Type: schema.TypeInt, Type: schema.TypeInt,
Optional: true, Optional: true,
Computed: true, Computed: true,
ForceNew: true,
}, },
"force_delete": &schema.Schema{ "force_delete": &schema.Schema{
@ -219,6 +218,10 @@ func resourceAwsAutoscalingGroupUpdate(d *schema.ResourceData, meta interface{})
AutoScalingGroupName: aws.String(d.Id()), AutoScalingGroupName: aws.String(d.Id()),
} }
if d.HasChange("default_cooldown") {
opts.DefaultCooldown = aws.Long(int64(d.Get("default_cooldown").(int)))
}
if d.HasChange("desired_capacity") { if d.HasChange("desired_capacity") {
opts.DesiredCapacity = aws.Long(int64(d.Get("desired_capacity").(int))) opts.DesiredCapacity = aws.Long(int64(d.Get("desired_capacity").(int)))
} }