1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-03-22 13:19:13 +00:00

uv_python module: make latest state more deterministic by using install with explicite version

This commit is contained in:
Mariam Ahhttouche 2026-02-13 17:04:24 +01:00
parent 396fc6cbb2
commit b897756776

View file

@ -107,8 +107,8 @@ class UV:
if self.module.check_mode:
return True, latest_version
cmd = [self.module.get_bin_path("uv", required=True), "python", "upgrade", self.python_version_str]
rc, out, _ = self.module.run_command(cmd, check_rc=True)
cmd = [self.module.get_bin_path("uv", required=True), "python", "install", latest_version]
_, out, _ = self.module.run_command(cmd, check_rc=True)
return True, out
def _find_python(self, *args):