1
0
Fork 0
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:
Mariam Ahhttouche 2026-02-13 17:09:20 +01:00
parent b897756776
commit 473f758ec1
2 changed files with 7 additions and 1 deletions

View file

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