Include the version of relenv in the versions report.

Fixes #63827

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
Pedro Algarvio 2023-03-09 07:52:39 +00:00 committed by Pedro Algarvio
parent 604e37fa63
commit 6c9dde226e
2 changed files with 6 additions and 1 deletions

1
changelog/63827.added.md Normal file
View file

@ -0,0 +1 @@
Include the version of `relenv` in the versions report.

View file

@ -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