fix: unused param aws_use_irsa (#359)

This commit is contained in:
Vincent Renaville authored and GitHub committed 2022-04-01 13:11:33 +02:00
1 parent 88b1eee7a5
commit 9597ede43a
1 file changed
+2 -7
+2 -7
View File
@@ -59,13 +59,8 @@ class IrAttachment(models.Model):
# replaces {db} by the database name to handle multi-tenancy
bucket_name = bucket_name.format(db=self.env.cr.dbname)
params = {
'aws_access_key_id': access_key,
'aws_secret_access_key': secret_key,
}
if aws_use_irsa:
params['aws_use_irsa'] = aws_use_irsa
elif access_key:
params = {}
if not aws_use_irsa and access_key:
params['aws_access_key_id'] = access_key
if secret_key:
params['aws_secret_access_key'] = secret_key
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.