Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge "Lock prettytable dep at v0.6"
  • Loading branch information
Jenkins authored and openstack-gerrit committed Jun 11, 2012
2 parents f4c4527 + 7745b35 commit d263f1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions novaclient/utils.py
Expand Up @@ -126,7 +126,7 @@ def pretty_choice_list(l):
def print_list(objs, fields, formatters={}):
mixed_case_fields = ['serverId']
pt = prettytable.PrettyTable([f for f in fields], caching=False)
pt.aligns = ['l' for f in fields]
pt.align = 'l'

for o in objs:
row = []
Expand All @@ -147,7 +147,7 @@ def print_list(objs, fields, formatters={}):

def print_dict(d, property="Property"):
pt = prettytable.PrettyTable([property, 'Value'], caching=False)
pt.aligns = ['l', 'l']
pt.align = 'l'
[pt.add_row(list(r)) for r in d.iteritems()]
print pt.get_string(sortby=property)

Expand Down
2 changes: 1 addition & 1 deletion tools/pip-requires
@@ -1,4 +1,4 @@
argparse
httplib2
prettytable
prettytable==0.6
simplejson

0 comments on commit d263f1f

Please sign in to comment.