mirror of
https://github.com/camptocamp/odoo-cloud-platform.git
synced 2026-06-24 02:08:36 +00:00
fix: test parameters (#361)
This commit is contained in:
co-authored by
GitHub
parent
9597ede43a
commit
78b626ee97
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user