ansible_mitogen: Restore dummy objects in Connection.reset()

The previous commit (53b4881628 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.
pull/1201/head
Alex Willmer 12 months ago
parent 7a828e7510
commit d033f7b057

@ -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

Loading…
Cancel
Save