From e8e5c3ff904b824f39835c6f677352dc78ecc570 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Sat, 22 Feb 2020 09:20:51 -0600 Subject: [PATCH] mgr/orch: fix 'host ls' Signed-off-by: Sage Weil --- src/pybind/mgr/orchestrator/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/orchestrator/module.py b/src/pybind/mgr/orchestrator/module.py index 4446dad0421..4add508efd3 100644 --- a/src/pybind/mgr/orchestrator/module.py +++ b/src/pybind/mgr/orchestrator/module.py @@ -213,7 +213,7 @@ class OrchestratorCli(OrchestratorClientMixin, MgrModule): table.align = 'l' table.left_padding_width = 0 table.right_padding_width = 1 - for node in sorted(completion.result, key=lambda h: h.name): + for node in sorted(completion.result, key=lambda h: h.hostname): table.add_row((node.hostname, node.addr, ' '.join(node.labels), node.status)) output = table.get_string() return HandleCommandResult(stdout=output) -- 2.39.5