mirror of
https://github.com/camptocamp/odoo-cloud-platform.git
synced 2026-06-24 08:47:40 +00:00
Merge pull request #42 from tschanzt/allow_more_bucket_names
allow more bucket names
This commit is contained in:
+1
-1
@@ -21,7 +21,7 @@ env:
|
|||||||
- TESTS="1" ODOO_REPO="OCA/OCB"
|
- TESTS="1" ODOO_REPO="OCA/OCB"
|
||||||
global:
|
global:
|
||||||
- VERSION="11.0" LINT_CHECK="0" TESTS="0"
|
- VERSION="11.0" LINT_CHECK="0" TESTS="0"
|
||||||
|
- BOTO_CONFIG="/dev/null"
|
||||||
install:
|
install:
|
||||||
- git clone --depth=1 https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools
|
- git clone --depth=1 https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools
|
||||||
- export PATH=${HOME}/maintainer-quality-tools/travis:${PATH}
|
- export PATH=${HOME}/maintainer-quality-tools/travis:${PATH}
|
||||||
|
|||||||
@@ -171,7 +171,7 @@ class CloudPlatform(models.AbstractModel):
|
|||||||
"AWS_BUCKETNAME must not be empty for prod "
|
"AWS_BUCKETNAME must not be empty for prod "
|
||||||
"and integration"
|
"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':
|
if environment_name == 'prod':
|
||||||
assert prod_bucket, (
|
assert prod_bucket, (
|
||||||
"AWS_BUCKETNAME should match '<client>-odoo-prod', "
|
"AWS_BUCKETNAME should match '<client>-odoo-prod', "
|
||||||
|
|||||||
Reference in New Issue
Block a user