unset website_endpoint, website_domain if website part is removed

This commit is contained in:
Clint Shryock 2015-10-14 14:49:33 -05:00
parent f9c577aa2a
commit 6ab339b62d
1 changed files with 3 additions and 0 deletions

View File

@ -464,6 +464,9 @@ func resourceAwsS3BucketWebsiteDelete(s3conn *s3.S3, d *schema.ResourceData) err
return fmt.Errorf("Error deleting S3 website: %s", err) return fmt.Errorf("Error deleting S3 website: %s", err)
} }
d.Set("website_endpoint", "")
d.Set("website_domain", "")
return nil return nil
} }