Do not require to run statds metrics

This commit is contained in:
Guewen Baconnier
2017-04-29 09:20:55 +02:00
parent f0519cf2f6
commit 2b81b7a6fb
-9
View File
@@ -131,14 +131,6 @@ class CloudPlatform(models.AbstractModel):
", we got: '%s'" % (prefix,)
)
@api.model
def _check_metrics(self, environment_name):
if environment_name == 'prod':
assert is_true(os.environ.get('ODOO_STATSD')), (
"Statds metrics must be activated on prod instances."
"This is done by setting ODOO_STATSD=1."
)
@api.model
def check(self):
if is_true(os.environ.get('ODOO_CLOUD_PLATFORM_UNSAFE')):
@@ -157,7 +149,6 @@ class CloudPlatform(models.AbstractModel):
environment_name = config['running_env']
self._check_s3(environment_name)
self._check_redis(environment_name)
self._check_metrics(environment_name)
@api.model_cr
def _register_hook(self):