mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Include the version of relenv
in the versions report.
Fixes #63827 Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
604e37fa63
commit
6c9dde226e
2 changed files with 6 additions and 1 deletions
1
changelog/63827.added.md
Normal file
1
changelog/63827.added.md
Normal file
|
@ -0,0 +1 @@
|
|||
Include the version of `relenv` in the versions report.
|
|
@ -715,6 +715,7 @@ def dependency_information(include_salt_cloud=False):
|
|||
("docker-py", "docker", "__version__"),
|
||||
("packaging", "packaging", "__version__"),
|
||||
("looseversion", "looseversion", None),
|
||||
("relenv", "relenv", "__version__"),
|
||||
]
|
||||
|
||||
if include_salt_cloud:
|
||||
|
@ -722,7 +723,10 @@ def dependency_information(include_salt_cloud=False):
|
|||
("Apache Libcloud", "libcloud", "__version__"),
|
||||
)
|
||||
|
||||
for name, imp, attr in libs:
|
||||
def _sort_by_lowercased_name(entry):
|
||||
return entry[0].lower()
|
||||
|
||||
for name, imp, attr in sorted(libs, key=_sort_by_lowercased_name):
|
||||
if imp is None:
|
||||
yield name, attr
|
||||
continue
|
||||
|
|
Loading…
Add table
Reference in a new issue