From: Sage Weil Date: Sat, 22 Feb 2020 15:20:51 +0000 (-0600) Subject: mgr/orch: fix 'host ls' X-Git-Tag: v15.1.1~302^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e8e5c3ff904b824f39835c6f677352dc78ecc570;p=ceph.git mgr/orch: fix 'host ls' Signed-off-by: Sage Weil --- 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)