]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/orch: fix 'host ls'
authorSage Weil <sage@redhat.com>
Sat, 22 Feb 2020 15:20:51 +0000 (09:20 -0600)
committerSage Weil <sage@redhat.com>
Sat, 22 Feb 2020 15:21:12 +0000 (09:21 -0600)
Signed-off-by: Sage Weil <sage@redhat.com>
src/pybind/mgr/orchestrator/module.py

index 4446dad042151f7af1e2c29bf58aea160501cdb0..4add508efd3a78e76b428ad82c89c74d69136e73 100644 (file)
@@ -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)