From: Sage Weil Date: Mon, 4 Nov 2019 19:15:21 +0000 (-0600) Subject: mgr/orchestrator_cli: fix 'service ls' table format X-Git-Tag: v15.1.0~1020^2~2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=67f5f44cc996fb4a6d49b81064197f5cf176c7f9;p=ceph-ci.git mgr/orchestrator_cli: fix 'service ls' table format Make this match the rest of Ceph. Signed-off-by: Sage Weil --- 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