Skip to content

Commit

Permalink
ansible_mitogen: Fix templated python interpreter with `meta: reset_c…
Browse files Browse the repository at this point in the history
…onnection`

refs #1079
  • Loading branch information
moreati committed Dec 10, 2024
1 parent 941da31 commit 6900e88
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ansible_mitogen/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -948,11 +948,11 @@ def reset(self):
# have an action object, which we need for interpreter_discovery.
# Create a temporary action object for this purpose.
self._action = ansible_mitogen.mixins.ActionModuleMixin(
task=0,
task=task,
connection=self,
play_context=self._play_context,
loader=0,
templar=0,
loader=templar._loader,
templar=templar,
shared_loader_obj=0,
)
self._action_monkey_patched_by_mitogen = True
Expand Down
2 changes: 2 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ In progress (unreleased)

* :gh:issue:`1079` :mod:`ansible_mitogen`: Fix :ans:mod:`wait_for_connection`
timeout with templated ``ansible_python_interpreter``
* :gh:issue:`1079` :mod:`ansible_mitogen`: Fix templated python interpreter
with `meta: reset_connection`


v0.3.19 (2024-12-02)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,15 @@
tags:
- issue_1079
- wait_for_connection

- hosts: issue1079
gather_facts: false
tasks:
- meta: reset_connection
- name: Wait for connection after reset_connection
wait_for_connection:
timeout: 5
tags:
- issue_1079
- reset_connection
- wait_for_connection

0 comments on commit 6900e88

Please sign in to comment.