From 7ab7d08c5bc8420f2f3c70f5aab93c35b9ff4742 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 22 Mar 2021 15:22:21 -0400 Subject: [PATCH] mgr/orchestrator: move PORTS column in 'orch ps' output Put it next to HOST. Signed-off-by: Sage Weil --- src/pybind/mgr/orchestrator/module.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pybind/mgr/orchestrator/module.py b/src/pybind/mgr/orchestrator/module.py index 129f771ad895..9eb3c5b1acfa 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))) -- 2.47.3