Remove bad sort values

This commit is contained in:
Joshua Boniface 2023-12-06 14:32:11 -05:00
parent 5691f75ac9
commit 1416f9edc0
1 changed files with 1 additions and 7 deletions

View File

@ -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("")