Remove bad sort values
This commit is contained in:
parent
5691f75ac9
commit
1416f9edc0
|
@ -274,13 +274,7 @@ def cli_cluster_status_format_short(CLI_CONFIG, data):
|
||||||
)
|
)
|
||||||
|
|
||||||
if messages is not None and len(messages) > 0:
|
if messages is not None and len(messages) > 0:
|
||||||
messages = "\n ".join(
|
messages = "\n ".join(messages["text"])
|
||||||
sorted(
|
|
||||||
messages,
|
|
||||||
key=lambda x: (x["status"], x["health_delta"], x["last_reported"]),
|
|
||||||
reverse=True,
|
|
||||||
)
|
|
||||||
)
|
|
||||||
output.append(f"{ansii['purple']}Faults:{ansii['end']} {messages}")
|
output.append(f"{ansii['purple']}Faults:{ansii['end']} {messages}")
|
||||||
|
|
||||||
output.append("")
|
output.append("")
|
||||||
|
|
Loading…
Reference in New Issue