Skip to content

Commit

Permalink
apiserver: Handle BucketExists() error
Browse files Browse the repository at this point in the history
  • Loading branch information
discordianfish committed Mar 23, 2020
1 parent 302cb07 commit b1d8c4d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backend/src/apiserver/client_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,9 @@ func initMinioClient(initConnectionTimeout time.Duration) storage.ObjectStoreInt
func createMinioBucket(minioClient *minio.Client, bucketName, region string) {
// Check to see if we already own this bucket.
exists, err := minioClient.BucketExists(bucketName)
if err != nil {
glog.Fatalf("Failed to check if Minio bucket exists. Error: %v", err)
}
if exists {
glog.Infof("We already own %s\n", bucketName)
return
Expand Down

0 comments on commit b1d8c4d

Please sign in to comment.