Fix comparison in maintenance check

This commit is contained in:
Joshua Boniface 2023-02-15 16:46:27 -05:00
parent 29584e5636
commit 15ff729f83
1 changed files with 2 additions and 2 deletions

View File

@ -125,7 +125,7 @@ def format_info(cluster_information, oformat):
return json.dumps(cluster_information, indent=4) return json.dumps(cluster_information, indent=4)
# Plain formatting, i.e. human-readable # Plain formatting, i.e. human-readable
if cluster_information["maintenance"] == "True": if cluster_information["maintenance"] == "true":
health_colour = ansiprint.blue() health_colour = ansiprint.blue()
elif cluster_information["health"] > 90: elif cluster_information["health"] > 90:
health_colour = ansiprint.green() health_colour = ansiprint.green()
@ -142,7 +142,7 @@ def format_info(cluster_information, oformat):
ainformation.append("") ainformation.append("")
health_text = f"{cluster_information['health']}%" health_text = f"{cluster_information['health']}%"
if cluster_information["maintenance"] == "True": if cluster_information["maintenance"] == "true":
health_text += " (maintenance on)" health_text += " (maintenance on)"
ainformation.append( ainformation.append(