fix assertion of python_path, it should be always what 'discovered_interpreter' is
This commit is contained in:
parent
e7e1c3bc86
commit
389cee8c70
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue