From 61b39d07390a525eebe52e8ed0f1559170eb23f0 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Thu, 7 Dec 2023 11:13:36 -0500 Subject: [PATCH] Fix incorrect cluster health calculation --- daemon-common/cluster.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon-common/cluster.py b/daemon-common/cluster.py index 2ea8b05f..631561bd 100644 --- a/daemon-common/cluster.py +++ b/daemon-common/cluster.py @@ -59,7 +59,7 @@ def getClusterHealthFromFaults(zkhandler): key=lambda x: (x["health_delta"], x["last_reported"]), reverse=True, ): - cluster_health_value = -fault["health_delta"] + cluster_health_value -= fault["health_delta"] message = { "id": fault["id"], "health_delta": fault["health_delta"],