small code cleanup
This commit is contained in:
parent
be60d39b24
commit
1b699aae7d
|
@ -72,13 +72,9 @@ 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
|
||||||
d.Partial(true)
|
|
||||||
if err := setTagsS3(s3conn, d); err != nil {
|
if err := setTagsS3(s3conn, d); err != nil {
|
||||||
return err
|
return err
|
||||||
} else {
|
|
||||||
d.SetPartial("tags")
|
|
||||||
}
|
}
|
||||||
d.Partial(false)
|
|
||||||
return resourceAwsS3BucketRead(d, meta)
|
return resourceAwsS3BucketRead(d, meta)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue