mirror of
https://github.com/camptocamp/odoo-cloud-platform.git
synced 2026-06-24 02:08:36 +00:00
fix: be sure parameter is set in the dict (#358)
This commit is contained in:
co-authored by
GitHub
parent
1f5970f05e
commit
6c415df113
@@ -96,9 +96,9 @@ class IrAttachment(models.Model):
|
|||||||
bucket_name = params.pop("bucket_name")
|
bucket_name = params.pop("bucket_name")
|
||||||
if not (
|
if not (
|
||||||
bucket_name and
|
bucket_name and
|
||||||
(params["aws_access_key_id"] and
|
(params.get("aws_access_key_id") and
|
||||||
params["aws_secret_access_key"] or
|
params.get("aws_secret_access_key") or
|
||||||
params["aws_use_irsa"])
|
params.get("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'
|
||||||
|
|||||||
Reference in New Issue
Block a user