Merge pull request #53 from p-tombez/12.0-fix_s3_name_check

Fix S3 bucket name check to allow numbers
This commit is contained in:
Yannick Vaucher
2019-05-01 16:24:28 +02:00
committed by GitHub
co-authored by GitHub
+1 -1
View File
@@ -150,7 +150,7 @@ class CloudPlatform(models.AbstractModel):
"AWS_BUCKETNAME must not be empty for prod "
"and integration"
)
prod_bucket = bool(re.match(r'[a-z]+-odoo-prod', bucket_name))
prod_bucket = bool(re.match(r'[a-z0-9]+-odoo-prod', bucket_name))
if environment_name == 'prod':
assert prod_bucket, (
"AWS_BUCKETNAME should match '<client>-odoo-prod', "