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 7952915 commit 33e9a34
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions attachment_minio/models/ir_attachment.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ 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 33e9a34

Please sign in to comment.