salt.version: case insensitive ordering of deps (#32532)

This commit is contained in:
Justin Findlay 2016-04-13 08:01:36 -06:00 committed by Mike Place
parent 3561664891
commit da631a3ab7

View File

@ -650,7 +650,8 @@ def versions_report(include_salt_cloud=False):
info = []
for ver_type in ('Salt Version', 'Dependency Versions', 'System Versions'):
info.append('{0}:'.format(ver_type))
for name in sorted(ver_info[ver_type]):
# List dependencies in alphabetical, case insensitive order
for name in sorted(ver_info[ver_type], cmp=lambda x, y: cmp(x.lower(), y.lower())):
ver = fmt.format(name,
ver_info[ver_type][name] or 'Not Installed',
pad=padding)