ansible_mitogen: Fix wait_for_connection + templated ansible_python_interpreter
This tightens up our monkey patching `Connection._action` so it's only applied during `meta: reset_connection` & promptly removed. This fixes "'int' object has no attribute 'template'" when `ansible.plugins.action.wait_for_connection` or other code calls `ansible.plugins.connection.ConnectionBase.reset()`. This could also have switched to `templar=templar` on the temporary action, rather than `templar=0`, but it's not strictly necessary to fix this bug. I anticipate other changes doing so soon, to improve interpreter discovery & templated python interpreter path support.pull/1200/head
parent
288b0051d2
commit
53b4881628
@ -0,0 +1,10 @@
|
||||
- name: regression/issue_1079__wait_for_connection_timeout.yml
|
||||
hosts: issue1079
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: Wait for connection at start of play
|
||||
wait_for_connection:
|
||||
timeout: 5
|
||||
tags:
|
||||
- issue_1079
|
||||
- wait_for_connection
|
||||
Loading…
Reference in New Issue