Commit f0c4dace by Richard C Isaacson

If a executable is defined but not found the module should fail. Addresses…

If a executable is defined but not found the module should fail. Addresses https://github.com/ansible/ansible/issues/5781.
parent b6875b3b
......@@ -175,7 +175,8 @@ def _get_pip(module, env=None, executable=None):
if os.path.isabs(executable):
pip = executable
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 env is None:
opt_dirs = []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment