diff --git a/daemon-common/cluster.py b/daemon-common/cluster.py index 5f118b4f..e2872fa8 100644 --- a/daemon-common/cluster.py +++ b/daemon-common/cluster.py @@ -241,7 +241,9 @@ def getNodeHealth(zkhandler, node_list): node_health_messages.append(f"'{entry['name']}': {entry['message']}") node_health_entry = { - "health": int(node_health_value), + "health": int(node_health_value) + if isinstance(node_health_value, int) + else node_health_value, "messages": node_health_messages, } node_health[node] = node_health_entry