[FIX] Bucket name formatting

This commit is contained in:
Miku Laitinen committed 2021-05-28 16:30:06 +03:00
1 parent 12c79ad20e
commit 656d0fb3d6
1 file changed
+1 -1
+1 -1
View File
@@ -57,7 +57,7 @@ class IrAttachment(models.Model):
secret_key = os.environ.get('AWS_SECRET_ACCESS_KEY')
bucket_name = name or os.environ.get('AWS_BUCKETNAME')
# replaces {db} by the database name to handle multi-tenancy
bucket_name.format(db=self.env.cr.dbname)
bucket_name = bucket_name.format(db=self.env.cr.dbname)
params = {
'aws_access_key_id': access_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.