From 1c97de9a676106505645de39419b8a69dd83138b Mon Sep 17 00:00:00 2001 From: pleimer Date: Thu, 29 Oct 2020 16:29:36 -0400 Subject: [PATCH] Failure status should be set on 0 rather than 1 This fixes a bug on train branch for the patch https://review.opendev.org/#/c/758447/ This does not affect any ussuri or master Change-Id: Ia2b99590776ff2be9248d5eaddebd1719c142406 --- container_config_scripts/monitoring/collectd_check_health.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/container_config_scripts/monitoring/collectd_check_health.py b/container_config_scripts/monitoring/collectd_check_health.py index 86282e4035..604414d1b4 100755 --- a/container_config_scripts/monitoring/collectd_check_health.py +++ b/container_config_scripts/monitoring/collectd_check_health.py @@ -59,7 +59,7 @@ def process_healthcheck_output(logfile): ret_code, output = 0, [] for _, opt in data.items(): - if opt['healthy'] > 0 and ret_code != 2: + if opt['healthy'] < 1 and ret_code != 2: ret_code = 2 output.append(opt) return ret_code, output