Add an advice in error message

This commit is contained in:
Guewen Baconnier
2020-01-23 12:17:52 +01:00
committed by sebalix
co-authored by sebalix
parent bf35de5c59
commit c35300a99d
+6 -2
View File
@@ -135,7 +135,9 @@ class CloudPlatform(osv.osv_abstract):
"Normally, 'swift' is activated on labs, integration " "Normally, 'swift' is activated on labs, integration "
"and production, but should not be used in dev environment" "and production, but should not be used in dev environment"
" (or using a dedicated dev bucket, never using the " " (or using a dedicated dev bucket, never using the "
"integration/prod bucket)." "integration/prod bucket).\n"
"If you don't actually need a bucket, change the"
" 'ir_attachment.location' parameter."
) )
prod_container = bool(re.match(r'[a-z0-9-]+-odoo-prod', prod_container = bool(re.match(r'[a-z0-9-]+-odoo-prod',
container_name)) container_name))
@@ -191,7 +193,9 @@ class CloudPlatform(osv.osv_abstract):
"Normally, 's3' is activated on labs, integration " "Normally, 's3' is activated on labs, integration "
"and production, but should not be used in dev environment" "and production, but should not be used in dev environment"
" (or using a dedicated dev bucket, never using the " " (or using a dedicated dev bucket, never using the "
"integration/prod bucket)." "integration/prod bucket).\n"
"If you don't actually need a bucket, change the"
" 'ir_attachment.location' parameter."
) )
prod_bucket = bool(re.match(r'[a-z-0-9]+-odoo-prod', bucket_name)) prod_bucket = bool(re.match(r'[a-z-0-9]+-odoo-prod', bucket_name))
if environment_name == 'prod': if environment_name == 'prod':