]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/pg_autoscaler: adjust style to match built-in tables
authorSage Weil <sage@redhat.com>
Sat, 13 Jul 2019 13:35:01 +0000 (08:35 -0500)
committerSage Weil <sage@redhat.com>
Fri, 19 Jul 2019 14:43:04 +0000 (09:43 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/pybind/mgr/pg_autoscaler/module.py

index 99530b3ba67c4877589a0d75a7db3813896f3dc3..e21ecfdacdcd905616bb92a78c42cbce603a8301 100644 (file)
@@ -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'