From 67f5f44cc996fb4a6d49b81064197f5cf176c7f9 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 4 Nov 2019 13:15:21 -0600 Subject: [PATCH] mgr/orchestrator_cli: fix 'service ls' table format Make this match the rest of Ceph. Signed-off-by: Sage Weil --- src/pybind/mgr/orchestrator_cli/module.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pybind/mgr/orchestrator_cli/module.py b/src/pybind/mgr/orchestrator_cli/module.py index 1b914a1c1f4..068fc2c0d30 100644 --- a/src/pybind/mgr/orchestrator_cli/module.py +++ b/src/pybind/mgr/orchestrator_cli/module.py @@ -260,8 +260,12 @@ class OrchestratorCli(orchestrator.OrchestratorClientMixin, MgrModule): return HandleCommandResult(stdout=json.dumps(data)) else: table = PrettyTable( - ['type', 'id', 'host', 'container', 'version', 'status', 'description'], + ['TYPE', 'ID', 'HOST', 'CONTAINER', 'VERSION', 'STATUS', + 'DESCRIPTION'], border=False) + table.align = 'l' + table.left_padding_width = 0 + table.right_padding_width = 1 for s in services: if s.service is None: service_id = s.service_instance -- 2.39.5