]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/orchestrator_cli: fix 'service ls' table format
authorSage Weil <sage@redhat.com>
Mon, 4 Nov 2019 19:15:21 +0000 (13:15 -0600)
committerSage Weil <sage@redhat.com>
Wed, 6 Nov 2019 14:26:12 +0000 (08:26 -0600)
Make this match the rest of Ceph.

Signed-off-by: Sage Weil <sage@redhat.com>
src/pybind/mgr/orchestrator_cli/module.py

index 1b914a1c1f429958b3ecc73629d2fb7d58d7087d..068fc2c0d3035c5c87b99d5d238e72919fcff6c8 100644 (file)
@@ -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