corrected the way we create buckets
This commit is contained in:
@@ -115,8 +115,8 @@ func (m *MinioService) CreateBucket(executionId string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
err = client.MakeBucket(context.Background(), executionId, minio.MakeBucketOptions{})
|
||||
if err != nil {
|
||||
err = client.MakeBucket(context.Background(), executionId, minio.MakeBucketOptions{ForceCreate: false})
|
||||
if err != nil && err.(minio.ErrorResponse).Code != "BucketAlreadyOwnedByYou" {
|
||||
l.Error().Msg("Error when creating the bucket for namespace " + executionId)
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user