From: Sage Weil Date: Mon, 22 Mar 2021 19:22:21 +0000 (-0400) Subject: mgr/orchestrator: move PORTS column in 'orch ps' output X-Git-Tag: v16.2.2~3^2~11^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=72c12c84b06d39904e31989d599ac102c7d36af7;p=ceph.git mgr/orchestrator: move PORTS column in 'orch ps' output Put it next to HOST. Signed-off-by: Sage Weil (cherry picked from commit 7ab7d08c5bc8420f2f3c70f5aab93c35b9ff4742) --- diff --git a/src/pybind/mgr/orchestrator/module.py b/src/pybind/mgr/orchestrator/module.py index 8a0ffe36b3963..fa3acb850d5fc 100644 --- a/src/pybind/mgr/orchestrator/module.py +++ b/src/pybind/mgr/orchestrator/module.py @@ -623,7 +623,8 @@ class OrchestratorCli(OrchestratorClientMixin, MgrModule, now = datetime_now() table = PrettyTable( - ['NAME', 'HOST', 'STATUS', 'REFRESHED', 'AGE', 'PORTS', + ['NAME', 'HOST', 'PORTS', + 'STATUS', 'REFRESHED', 'AGE', 'VERSION', 'IMAGE ID', 'CONTAINER ID'], border=False) table.align = 'l' @@ -645,10 +646,10 @@ class OrchestratorCli(OrchestratorClientMixin, MgrModule, table.add_row(( s.name(), ukn(s.hostname), + s.get_port_summary() or '-', status, nice_delta(now, s.last_refresh, ' ago'), nice_delta(now, s.created), - s.get_port_summary() or '-', ukn(s.version), ukn(s.container_image_id)[0:12], ukn(s.container_id)))