Align print_dict to the left
Change-Id: Ib98e912a7af0bb570b4fd738733edd9b837d1a10
This commit is contained in:
@@ -57,7 +57,7 @@ def print_list(objs, fields, formatters={}):
|
|||||||
|
|
||||||
def print_dict(d):
|
def print_dict(d):
|
||||||
pt = prettytable.PrettyTable(['Property', 'Value'], caching=False)
|
pt = prettytable.PrettyTable(['Property', 'Value'], caching=False)
|
||||||
pt.aligns = ['l', 'l']
|
pt.align = 'l'
|
||||||
[pt.add_row(list(r)) for r in d.iteritems()]
|
[pt.add_row(list(r)) for r in d.iteritems()]
|
||||||
print pt.get_string(sortby='Property')
|
print pt.get_string(sortby='Property')
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user