Merge pull request #12122 from netjunki/which-bucket-had-a-tag-value-err

aws/provider: aws_s3_bucket doesn't report bucket name when encounter…
This commit is contained in:
Jake Champlin 2017-02-21 16:19:54 -05:00 committed by GitHub
commit 757b83aeeb
1 changed files with 1 additions and 1 deletions

View File

@ -450,7 +450,7 @@ func resourceAwsS3BucketCreate(d *schema.ResourceData, meta interface{}) error {
func resourceAwsS3BucketUpdate(d *schema.ResourceData, meta interface{}) error { func resourceAwsS3BucketUpdate(d *schema.ResourceData, meta interface{}) error {
s3conn := meta.(*AWSClient).s3conn s3conn := meta.(*AWSClient).s3conn
if err := setTagsS3(s3conn, d); err != nil { if err := setTagsS3(s3conn, d); err != nil {
return err return fmt.Errorf("%q: %s", d.Get("bucket").(string), err)
} }
if d.HasChange("policy") { if d.HasChange("policy") {