Merge pull request #1353 from hashicorp/f-aws-asg-fix-drain-delete

provider/aws: Fix issue with tainted ASG groups failing to re-create
This commit is contained in:
Clint 2015-04-01 10:20:58 -05:00
commit 9d91c806fc
1 changed files with 6 additions and 1 deletions

View File

@ -287,7 +287,12 @@ func resourceAwsAutoscalingGroupDelete(d *schema.ResourceData, meta interface{})
return err
}
return resource.Retry(5*time.Minute, func() error {
if g, _ = getAwsAutoscalingGroup(d, meta); g != nil {
return fmt.Errorf("Auto Scaling Group still exists")
}
return nil
})
}
func getAwsAutoscalingGroup(