Merge pull request #41 from jcoux/fix_check_stack_name

Fix the check stack name for project with digit at first character
This commit is contained in:
Guewen Baconnier
2018-12-03 10:56:46 +01:00
committed by GitHub
co-authored by GitHub
+1 -1
View File
@@ -190,7 +190,7 @@ class CloudPlatform(models.AbstractModel):
)
prefix = os.environ['ODOO_SESSION_REDIS_PREFIX']
assert re.match(r'[a-z]+[a-z0-9]*-odoo-[a-z]+[0-9]*', prefix), (
assert re.match(r'[a-z0-9]+-odoo-[a-z0-9]+[0-9]*', prefix), (
"ODOO_SESSION_REDIS_PREFIX must match '<client>-odoo-<env>'"
", we got: '%s'" % (prefix,)
)