Merge pull request #42 from tschanzt/allow_more_bucket_names

allow more bucket names
This commit is contained in:
Guewen Baconnier
2019-01-14 16:27:31 +01:00
committed by GitHub
co-authored by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ env:
- TESTS="1" ODOO_REPO="OCA/OCB"
global:
- VERSION="11.0" LINT_CHECK="0" TESTS="0"
- BOTO_CONFIG="/dev/null"
install:
- git clone --depth=1 https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools
- export PATH=${HOME}/maintainer-quality-tools/travis:${PATH}
+1 -1
View File
@@ -171,7 +171,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', "