From: Sage Weil Date: Sat, 13 Jul 2019 13:35:01 +0000 (-0500) Subject: mgr/pg_autoscaler: adjust style to match built-in tables X-Git-Tag: v14.2.5~61^2~17 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5543836fd13311ef7166a48aa4e77a9a8d91168a;p=ceph.git mgr/pg_autoscaler: adjust style to match built-in tables Signed-off-by: Sage Weil (cherry picked from commit 44a99f2f7692e2ab2a74f8a0df983a81a3dea299) --- diff --git a/src/pybind/mgr/pg_autoscaler/module.py b/src/pybind/mgr/pg_autoscaler/module.py index f75b8b9021f..3394d3e9859 100644 --- a/src/pybind/mgr/pg_autoscaler/module.py +++ b/src/pybind/mgr/pg_autoscaler/module.py @@ -9,7 +9,7 @@ import threading import uuid from six import itervalues, iteritems from collections import defaultdict -from prettytable import PrettyTable +from prettytable import PrettyTable, PLAIN_COLUMNS from mgr_module import MgrModule @@ -115,6 +115,8 @@ class PgAutoscaler(MgrModule): # 'IDEAL', 'NEW PG_NUM', 'AUTOSCALE'], border=False) + table.left_padding_width = 0 + table.right_padding_width = 1 table.align['POOL'] = 'l' table.align['SIZE'] = 'r' table.align['TARGET SIZE'] = 'r'