mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
salt.version: case insensitive ordering of deps (#32532)
This commit is contained in:
parent
3561664891
commit
da631a3ab7
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user