Skip to content

Commit

Permalink
Implements #142: Sorted Attributes In List Command (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
Narayanan Seshan authored and jathanism committed Sep 6, 2017
1 parent bef55a2 commit fe4829f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pynsot/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def pretty_dict(data, delim='=', sep=', ', joiner='\n'):
"""
log.debug('PRETTY DICT INCOMING DATA = %r', data)
pretty = ''
for key, val in data.iteritems():
for key, val in sorted(data.iteritems()):
if isinstance(val, list):
# Sort, add a newline and indent so that nested value items
# look better.
Expand Down

0 comments on commit fe4829f

Please sign in to comment.