From 7952915f83a156d8e20157ac6cca342040568586 Mon Sep 17 00:00:00 2001 From: Abdellatif Benzbiria Date: Thu, 4 Jul 2024 22:34:55 +0100 Subject: [PATCH] [16.0][MIG] attachment_minio --- attachment_minio/models/ir_attachment.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/attachment_minio/models/ir_attachment.py b/attachment_minio/models/ir_attachment.py index 55225540..f4aaadd9 100644 --- a/attachment_minio/models/ir_attachment.py +++ b/attachment_minio/models/ir_attachment.py @@ -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