fixed propagating discovered interpreter to future tasks; sys.executable still wrong though

This commit is contained in:
Steven Robertson 2020-02-03 14:51:50 -08:00
parent af1e22d4e1
commit 8630f6190c
1 changed files with 4 additions and 3 deletions

View File

@ -105,12 +105,13 @@ def run_interpreter_discovery_if_necessary(s, task_vars, action):
# cache discovered interpreter
task_vars['ansible_facts'][discovered_interpreter_config] = s
action._connection.has_pipelining = False
# propagate discovered interpreter as fact
action._discovered_interpreter_key = discovered_interpreter_config
action._discovered_interpreter = s
else:
s = task_vars['ansible_facts'][discovered_interpreter_config]
# propagate discovered interpreter as fact
action._discovered_interpreter_key = discovered_interpreter_config
action._discovered_interpreter = s
action._finding_python_interpreter = False
return s