]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr: adjust tables to have 2 space column separation
authorSage Weil <sage@redhat.com>
Sat, 8 Feb 2020 19:14:29 +0000 (13:14 -0600)
committerSage Weil <sage@redhat.com>
Sun, 23 Feb 2020 21:47:03 +0000 (15:47 -0600)
Signed-off-by: Sage Weil <sage@redhat.com>
src/pybind/mgr/crash/module.py
src/pybind/mgr/orchestrator/module.py
src/pybind/mgr/pg_autoscaler/module.py

index dafaf90e031d8e6d970e0a73dfcd7c774bc73490..0d22fe8f28cee10d65992095e2e4fc985a42edf3 100644 (file)
@@ -210,7 +210,7 @@ class Module(MgrModule):
             table = PrettyTable(['ID', 'ENTITY', 'NEW'],
                                 border=False)
             table.left_padding_width = 0
-            table.right_padding_width = 1
+            table.right_padding_width = 2
             table.align['ID'] = 'l'
             table.align['ENTITY'] = 'l'
             for c in r:
index 8407718626da438404e965c11354ab547d51db87..b4ecea7470426d51b7b703edd97b91e5dae422a5 100644 (file)
@@ -212,7 +212,7 @@ class OrchestratorCli(OrchestratorClientMixin, MgrModule):
                 border=False)
             table.align = 'l'
             table.left_padding_width = 0
-            table.right_padding_width = 1
+            table.right_padding_width = 2
             for host in sorted(completion.result, key=lambda h: h.hostname):
                 table.add_row((host.hostname, host.addr, ' '.join(host.labels), host.status))
             output = table.get_string()
@@ -275,7 +275,7 @@ class OrchestratorCli(OrchestratorClientMixin, MgrModule):
             table.align = 'l'
             table._align['SIZE'] = 'r'
             table.left_padding_width = 0
-            table.right_padding_width = 1
+            table.right_padding_width = 2
             for host_ in completion.result: # type: InventoryHost
                 for d in host_.devices.devices:  # type: Device
                     table.add_row(
@@ -393,7 +393,7 @@ class OrchestratorCli(OrchestratorClientMixin, MgrModule):
                 border=False)
             table.align = 'l'
             table.left_padding_width = 0
-            table.right_padding_width = 1
+            table.right_padding_width = 2
             for s in sorted(daemons, key=lambda s: s.name()):
                 status = {
                     -1: 'error',
index 404fb503a2f07a88e1927ff20d666aba38628cb6..f9242f59b5717e06f849934e5e03a55ffab35446 100644 (file)
@@ -152,7 +152,7 @@ class PgAutoscaler(MgrModule):
                                  'NEW PG_NUM', 'AUTOSCALE'],
                                 border=False)
             table.left_padding_width = 0
-            table.right_padding_width = 1
+            table.right_padding_width = 2
             table.align['POOL'] = 'l'
             table.align['SIZE'] = 'r'
             table.align['TARGET SIZE'] = 'r'