Skip to content

Commit

Permalink
fix: Return non-aws errors if bucket creation fails
Browse files Browse the repository at this point in the history
  • Loading branch information
Radek Simko committed Feb 17, 2016
1 parent bcd8306 commit 35345c9
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 35345c9

Please sign in to comment.