Merge "Fix print_list label name in troveclient/utils.py"

This commit is contained in:
Zuul 2017-12-25 21:39:26 +00:00 committed by Gerrit Code Review
commit 5a6123f94e
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ def print_list(objs, fields, formatters={}, order_by=None, obj_is_dict=False,
for field in fields:
if field not in labels:
# No underscores (use spaces instead) and uppercase any ID's
label = field.replace("_", " ").replace("id", "ID")
label = field.replace("_", " ").replace(" id", " ID")
# Uppercase anything else that's less than 3 chars
if len(label) < 3:
label = label.upper()