Skip to content

Commit

Permalink
Merge pull request #5162 from TimeIncOSS/b-aws-s3-bucket-retry
Browse files Browse the repository at this point in the history
fix: Return non-aws errors if bucket creation fails
  • Loading branch information
stack72 committed Feb 17, 2016
2 parents bcd8306 + 35345c9 commit 3db8444
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions builtin/providers/aws/resource_aws_s3_bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,11 @@ func resourceAwsS3BucketCreate(d *schema.ResourceData, meta interface{}) error {
return fmt.Errorf("[WARN] Error creating S3 bucket %s, retrying: %s",
bucket, err)
}
}
if err != nil {
return resource.RetryError{Err: err}
}

return nil
})

Expand Down

0 comments on commit 3db8444

Please sign in to comment.