From: Sage Weil Date: Sat, 8 Feb 2020 19:14:29 +0000 (-0600) Subject: mgr: adjust tables to have 2 space column separation X-Git-Tag: v15.1.1~276^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3e223942ea99be12dcd2ecfe3c25d72172abbd37;p=ceph.git mgr: adjust tables to have 2 space column separation Signed-off-by: Sage Weil --- diff --git a/src/pybind/mgr/crash/module.py b/src/pybind/mgr/crash/module.py index dafaf90e031d..0d22fe8f28ce 100644 --- a/src/pybind/mgr/crash/module.py +++ b/src/pybind/mgr/crash/module.py @@ -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: diff --git a/src/pybind/mgr/orchestrator/module.py b/src/pybind/mgr/orchestrator/module.py index 8407718626da..b4ecea747042 100644 --- a/src/pybind/mgr/orchestrator/module.py +++ b/src/pybind/mgr/orchestrator/module.py @@ -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', diff --git a/src/pybind/mgr/pg_autoscaler/module.py b/src/pybind/mgr/pg_autoscaler/module.py index 404fb503a2f0..f9242f59b571 100644 --- a/src/pybind/mgr/pg_autoscaler/module.py +++ b/src/pybind/mgr/pg_autoscaler/module.py @@ -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'