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:
parent
396fc6cbb2
commit
b897756776
1 changed files with 2 additions and 2 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue