1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-03-22 05:09:12 +00:00
This commit is contained in:
Mariam Ahhttouche 2026-02-25 12:08:29 +01:00
parent d078c66f27
commit a4b658e613

View file

@ -231,7 +231,7 @@ class UV:
self.module.fail_json(msg=f"Version {self.python_version_str} is not available.")
if rc == 0 and installed_version >= Version(latest_version_str):
ignored_rc, install_path, ignored_err = self._find_python()
return False, "", "", rc, [installed_version.__str__()], [install_path]
return False, "", "", rc, [installed_version_str], [install_path]
if self.module.check_mode:
return True, "", "", 0, [latest_version_str], []
# it's possible to have latest version already installed but not used as default