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

pull/658/head
Steven Robertson 5 years ago
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…
Cancel
Save