mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
If a executable is defined but not found the module should fail. Addresses https://github.com/ansible/ansible/issues/5781.
This commit is contained in:
parent
b6875b3b87
commit
f0c4dace8d
1 changed files with 2 additions and 1 deletions
|
@ -175,7 +175,8 @@ def _get_pip(module, env=None, executable=None):
|
||||||
if os.path.isabs(executable):
|
if os.path.isabs(executable):
|
||||||
pip = executable
|
pip = executable
|
||||||
else:
|
else:
|
||||||
candidate_pip_basenames.insert(0, executable)
|
# If you define your own executable that executable should be the only candidate.
|
||||||
|
candidate_pip_basenames = [executable]
|
||||||
if pip is None:
|
if pip is None:
|
||||||
if env is None:
|
if env is None:
|
||||||
opt_dirs = []
|
opt_dirs = []
|
||||||
|
|
Loading…
Reference in a new issue