From d033f7b057f55402613c516b80e31d18c57bc07d Mon Sep 17 00:00:00 2001 From: Alex Willmer Date: Tue, 10 Dec 2024 15:28:01 +0000 Subject: [PATCH] ansible_mitogen: Restore dummy objects in Connection.reset() The previous commit (53b4881628a3f08eb9488b087fbf6ca8d7357674 in PR 1200) was not intended to change these values, but some WIP slipped through. This partially reverts that commit so the two changes (moving the monkey patch, making the monkey patch more capable) exist in distinct commits. --- ansible_mitogen/connection.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ansible_mitogen/connection.py b/ansible_mitogen/connection.py index a043ef1d..90ddb7ed 100644 --- a/ansible_mitogen/connection.py +++ b/ansible_mitogen/connection.py @@ -948,11 +948,11 @@ class Connection(ansible.plugins.connection.ConnectionBase): # 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=task, + task=0, connection=self, play_context=self._play_context, - loader=templar._loader, - templar=templar, + loader=0, + templar=0, shared_loader_obj=0, ) self._action_monkey_patched_by_mitogen = True