Update health detail messages format

This commit is contained in:
Joshua Boniface 2023-12-13 03:17:47 -05:00
parent ed9c37982a
commit 38e43b46c3
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ def check_pvc(item, params, section):
summary = f"Cluster health is {cluster_health}% (maintenance {maintenance})" summary = f"Cluster health is {cluster_health}% (maintenance {maintenance})"
if len(cluster_messages) > 0: if len(cluster_messages) > 0:
details = ", ".join(cluster_messages) details = ", ".join([m["text"] for m in cluster_messages])
if cluster_health <= 50 and maintenance == "off": if cluster_health <= 50 and maintenance == "off":
state = State.CRIT state = State.CRIT