mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
unset website_endpoint, website_domain if website part is removed
This commit is contained in:
parent
f9c577aa2a
commit
6ab339b62d
@ -464,6 +464,9 @@ func resourceAwsS3BucketWebsiteDelete(s3conn *s3.S3, d *schema.ResourceData) err
|
||||
return fmt.Errorf("Error deleting S3 website: %s", err)
|
||||
}
|
||||
|
||||
d.Set("website_endpoint", "")
|
||||
d.Set("website_domain", "")
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user