Merge pull request #23632 from cachedout/issue_23529

Sort keys on output with salt-key
This commit is contained in:
Nicole Thomas 2015-05-13 08:54:43 -06:00
commit 2acf0c5a5c

View File

@ -87,7 +87,7 @@ def output(data):
for status in sorted(data): for status in sorted(data):
ret += u'{0}\n'.format(trans[status]) ret += u'{0}\n'.format(trans[status])
for key in data[status]: for key in sorted(data[status]):
skey = key skey = key
if strip_colors: if strip_colors:
skey = salt.output.strip_esc_sequence(key) skey = salt.output.strip_esc_sequence(key)