Skip to content

Commit

Permalink
Simplifies tag on create
Browse files Browse the repository at this point in the history
  • Loading branch information
gdavison committed Feb 8, 2024
1 parent 6904e9f commit 950bd4f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions internal/service/s3/bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -774,10 +774,7 @@ func resourceBucketCreate(ctx context.Context, d *schema.ResourceData, meta inte
return sdkdiag.AppendErrorf(diags, "waiting for S3 Bucket (%s) create: %s", d.Id(), err)
}

tagsIn := getTagsIn(ctx)
if len(tagsIn) != 0 {
bucketCreateTags(ctx, conn, d.Id(), tagsIn)
}
bucketCreateTags(ctx, conn, d.Id(), getTagsIn(ctx))

Check failure on line 777 in internal/service/s3/bucket.go

View workflow job for this annotation

GitHub Actions / 2 of 2

Error return value is not checked (errcheck)

return append(diags, resourceBucketUpdate(ctx, d, meta)...)
}
Expand Down

0 comments on commit 950bd4f

Please sign in to comment.