fix: test parameters (#361)

This commit is contained in:
Vincent Renaville
2022-04-04 11:29:42 +02:00
committed by GitHub
co-authored by GitHub
parent 9597ede43a
commit 78b626ee97
+1 -1
View File
@@ -68,7 +68,7 @@ class IrAttachment(models.Model):
params['endpoint_url'] = host params['endpoint_url'] = host
if region_name: if region_name:
params['region_name'] = 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 ' msg = _('If you want to read from the %s S3 bucket, the following '
'environment variables must be set:\n' 'environment variables must be set:\n'
'* AWS_ACCESS_KEY_ID\n' '* AWS_ACCESS_KEY_ID\n'