Skip to content

Commit

Permalink
add back in bucket.go change
Browse files Browse the repository at this point in the history
  • Loading branch information
anGie44 committed Jan 21, 2022
1 parent a87fd6b commit 4b4336f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/service/s3/bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -781,13 +781,13 @@ func resourceBucketUpdate(d *schema.ResourceData, meta interface{}) error {

if d.IsNewResource() {
if versioning := expandVersioningWhenIsNewResource(v); versioning != nil {
err := resourceBucketVersioningUpdate(conn, d.Id(), versioning)
err := resourceBucketInternalVersioningUpdate(conn, d.Id(), versioning)
if err != nil {
return err
}
}
} else {
if err := resourceBucketVersioningUpdate(conn, d.Id(), expandVersioning(v)); err != nil {
if err := resourceBucketInternalVersioningUpdate(conn, d.Id(), expandVersioning(v)); err != nil {
return err
}
}
Expand Down Expand Up @@ -1851,7 +1851,7 @@ func resourceBucketACLUpdate(conn *s3.S3, d *schema.ResourceData) error {
return nil
}

func resourceBucketVersioningUpdate(conn *s3.S3, bucket string, versioningConfig *s3.VersioningConfiguration) error {
func resourceBucketInternalVersioningUpdate(conn *s3.S3, bucket string, versioningConfig *s3.VersioningConfiguration) error {
input := &s3.PutBucketVersioningInput{
Bucket: aws.String(bucket),
VersioningConfiguration: versioningConfig,
Expand Down

0 comments on commit 4b4336f

Please sign in to comment.