fix assertion of python_path, it should be always what 'discovered_interpreter' is

This commit is contained in:
Steven Robertson 2020-03-15 11:10:26 -07:00
parent e7e1c3bc86
commit 389cee8c70
2 changed files with 4 additions and 1 deletions

View File

@ -52,4 +52,6 @@ class ActionModule(ActionBase):
'changed': True,
'result': stack,
'_ansible_verbose_always': True,
# for ansible < 2.8, we'll default to /usr/bin/python like before
'discovered_interpreter': self._connection._action._discovered_interpreter
}

View File

@ -77,7 +77,8 @@
- {mitogen_get_stack: {}, register: out}
- assert_equal:
left: out.result[0].kwargs.python_path
right: ["/usr/bin/python"]
right: ["{{out.discovered_interpreter}}"]
- hosts: localhost
vars: {mitogen_via: tc-python-path-local-unset}