diff --git a/monitoring_prometheus/models/psutils_helpers.py b/monitoring_prometheus/models/psutils_helpers.py index 8f41cbef..1803aac6 100644 --- a/monitoring_prometheus/models/psutils_helpers.py +++ b/monitoring_prometheus/models/psutils_helpers.py @@ -16,7 +16,7 @@ def get_process_info(): ProcessLabel = "workercron" elif process.info["pid"] == 1: ProcessLabel = "dispatcher" - elif any(["gevent" in x for x in process.info["cmdline"]]): + elif any("gevent" in x for x in process.info["cmdline"]): ProcessLabel = "gevent" elif any(["odoo" in x for x in process.info["cmdline"]]): ProcessLabel = "workerhttp"