Skip to content

Commit

Permalink
object/gs: remove storage class settings (#3536)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhijian-pro authored and SandyXSD committed Aug 23, 2023
1 parent 3b0cabc commit 809334c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/object/gs.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,8 @@ func (g *gs) Create() error {
}

err := g.client.Bucket(g.bucket).Create(ctx, projectID, &storage.BucketAttrs{
Name: g.bucket,
StorageClass: "regional",
Location: g.region,
Name: g.bucket,
Location: g.region,
})
if err != nil && strings.Contains(err.Error(), "You already own this bucket") {
return nil
Expand Down

0 comments on commit 809334c

Please sign in to comment.