mirror of
https://github.com/camptocamp/odoo-cloud-platform.git
synced 2026-06-23 18:04:34 +00:00
Do not require to run statds metrics
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user