Skip to content

Commit a905f59

Browse files
committed
Sort alert codes in detailed pool view context
The are already sorted in table view, so might as well be consistent. Signed-off-by: mulhern <amulhern@redhat.com>
1 parent 987fe9c commit a905f59

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/stratis_cli/_actions/_list_pool.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,11 +325,11 @@ def _print_detail_view(
325325
print(f"UUID: {self.uuid_formatter(mopool.Uuid())}")
326326
print(f"Name: {mopool.Name()}")
327327

328-
alert_summary = [
328+
alert_summary = sorted(
329329
f"{code}: {code.summarize()}"
330330
for code in alerts.alert_codes(pool_object_path)
331331
+ Default.alert_codes(mopool)
332-
]
332+
)
333333
print(f"Alerts: {len(alert_summary)}")
334334
for line in alert_summary: # pragma: no cover
335335
print(f" {line}")

0 commit comments

Comments
 (0)