corrected the way we create buckets

This commit is contained in:
pb
2025-08-01 16:23:41 +02:00
parent c45824d3f2
commit a788373c0f
2 changed files with 6 additions and 6 deletions

View File

@@ -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
}