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: v17.1.0~2501^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F40320%2Fhead;p=ceph.git mgr/orchestrator: move PORTS column in 'orch ps' output Put it next to HOST. Signed-off-by: Sage Weil --- diff --git a/src/pybind/mgr/orchestrator/module.py b/src/pybind/mgr/orchestrator/module.py index 129f771ad89..9eb3c5b1acf 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)))