aws/provider: aws_s3_bucket doesn't report bucket name when encountering tag value problems
This commit is contained in:
parent
33f41ab7af
commit
a7bbff6c1e
|
@ -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("%s %q", err, d.Get("bucket").(string))
|
||||||
}
|
}
|
||||||
|
|
||||||
if d.HasChange("policy") {
|
if d.HasChange("policy") {
|
||||||
|
|
Loading…
Reference in New Issue