Skip to content

Commit

Permalink
Merge pull request #2806 from hashicorp/b-aws-lc-cleanup
Browse files Browse the repository at this point in the history
provider/aws: Clean up externally removed Launch Configurations
  • Loading branch information
catsby committed Jul 24, 2015
2 parents 8ce3d49 + b720387 commit b75b405
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion builtin/providers/aws/resource_aws_launch_configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,8 @@ func resourceAwsLaunchConfigurationDelete(d *schema.ResourceData, meta interface
})
if err != nil {
autoscalingerr, ok := err.(awserr.Error)
if ok && autoscalingerr.Code() == "InvalidConfiguration.NotFound" {
if ok && (autoscalingerr.Code() == "InvalidConfiguration.NotFound" || autoscalingerr.Code() == "ValidationError") {
log.Printf("[DEBUG] Launch configuration (%s) not found", d.Id())
return nil
}

Expand Down

0 comments on commit b75b405

Please sign in to comment.