Ensure fencing states are properly reflected

This commit is contained in:
2023-09-18 09:59:18 -04:00
parent f46bfc962f
commit c4397219da
2 changed files with 6 additions and 1 deletions

View File

@ -135,7 +135,7 @@ def cli_cluster_status_format_pretty(CLI_CONFIG, data):
state_colour = ansii["green"]
elif state in ["run,flush", "run,unflush", "run,flushed"]:
state_colour = ansii["blue"]
elif "dead" in state or "stop" in state:
elif "dead" in state or "fenced" in state or "stop" in state:
state_colour = ansii["red"]
else:
state_colour = ansii["yellow"]