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:
|
||||
messages = "\n ".join(
|
||||
sorted(
|
||||
messages,
|
||||
key=lambda x: (x["status"], x["health_delta"], x["last_reported"]),
|
||||
reverse=True,
|
||||
)
|
||||
)
|
||||
messages = "\n ".join(messages["text"])
|
||||
output.append(f"{ansii['purple']}Faults:{ansii['end']} {messages}")
|
||||
|
||||
output.append("")
|
||||
|
|
Loading…
Reference in New Issue