Merge pull request #17 from camptocamp/jcoux-patch-fix-regex-redis

Fix regex on check ODOO_SESSION_REDIS_PREFIX
This commit is contained in:
jcoux authored and GitHub committed 2017-10-26 13:21:48 +02:00
commit 0fe1115bc9
1 file changed
+1 -1
+1 -1
View File
@@ -201,7 +201,7 @@ class CloudPlatform(models.AbstractModel):
)
prefix = os.environ['ODOO_SESSION_REDIS_PREFIX']
assert re.match(r'[a-z]+-odoo-[a-z]+', prefix), (
assert re.match(r'[a-z]+[a-z0-9]*-odoo-[a-z]+[0-9]*', prefix), (
"ODOO_SESSION_REDIS_PREFIX must match '<client>-odoo-<env>'"
", we got: '%s'" % (prefix,)
)
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.