mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-22 21:29:19 +00:00
uv_python module: improve absent state check mode and add corresponding integration test
This commit is contained in:
parent
b897756776
commit
473f758ec1
2 changed files with 7 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ class UV:
|
|||
if rc != 0:
|
||||
return False, out
|
||||
if self.module.check_mode:
|
||||
return True, ""
|
||||
return True, out
|
||||
|
||||
cmd = [self.module.get_bin_path("uv", required=True), "python", "uninstall", self.python_version_str]
|
||||
_, out, _ = self.module.run_command(cmd, check_rc=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue