From 78b626ee97c6e21f124251d47ca00877be34fb43 Mon Sep 17 00:00:00 2001 From: Vincent Renaville Date: Mon, 4 Apr 2022 11:29:42 +0200 Subject: [PATCH] fix: test parameters (#361) --- attachment_s3/models/ir_attachment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/attachment_s3/models/ir_attachment.py b/attachment_s3/models/ir_attachment.py index 15549ec..85ab60d 100644 --- a/attachment_s3/models/ir_attachment.py +++ b/attachment_s3/models/ir_attachment.py @@ -68,7 +68,7 @@ class IrAttachment(models.Model): params['endpoint_url'] = host if region_name: params['region_name'] = region_name - if not (access_key and secret_key and bucket_name): + if not (bucket_name and (access_key and secret_key or aws_use_irsa)): msg = _('If you want to read from the %s S3 bucket, the following ' 'environment variables must be set:\n' '* AWS_ACCESS_KEY_ID\n'