From 38ff55556f6509bd5c4405561f645ea7194f0214 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Wed, 22 Feb 2023 18:20:18 -0500 Subject: [PATCH] Set maintenance colour in cluster detail --- client-cli/pvc/pvc.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client-cli/pvc/pvc.py b/client-cli/pvc/pvc.py index 64ed459d..dc89aa31 100755 --- a/client-cli/pvc/pvc.py +++ b/client-cli/pvc/pvc.py @@ -585,7 +585,9 @@ def cluster_detail(): volumes = "N/A" snapshots = "N/A" else: - if cluster_details["data"]["cluster_health"]["health"] > 90: + if cluster_details["data"]["maintenance"] == "true": + health_colour = ansiprint.blue() + elif cluster_details["data"]["cluster_health"]["health"] > 90: health_colour = ansiprint.green() elif cluster_details["data"]["cluster_health"]["health"] > 50: health_colour = ansiprint.yellow()