Skip to content

Commit

Permalink
[16.0][MIG] attachment_minio
Browse files Browse the repository at this point in the history
  • Loading branch information
abenzbiria committed Jul 4, 2024
1 parent 7d2ced5 commit 7952915
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions attachment_minio/models/ir_attachment.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,8 @@ def _get_minio_bucket(self, client, name=None):
"Incorrect configuration of attachment_minio -- Missing bucket."
)
if not client.bucket_exists(bucket):
region = (
params.get_param("ir_attachment.location.region", "us-west-1")
or config.get("attachment_minio_region", "us-west-1")
)
region = (params.get_param("ir_attachment.location.region",
"us-west-1") or config.get("attachment_minio_region", "us-west-1"))
client.make_bucket(bucket, region)
return bucket

Expand Down

0 comments on commit 7952915

Please sign in to comment.