From 6ba08097b69aa75d4e8f9041b9af2a1fc340bdfa Mon Sep 17 00:00:00 2001 From: Steven Robertson Date: Sun, 23 Aug 2020 00:15:29 -0700 Subject: [PATCH] more notes, strategy plugin is being called but Mitogen's method overrides aren't being triggered --- ansible_mitogen/connection.py | 1 + ansible_mitogen/strategy.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/ansible_mitogen/connection.py b/ansible_mitogen/connection.py index ccaba7dc..500837d3 100644 --- a/ansible_mitogen/connection.py +++ b/ansible_mitogen/connection.py @@ -828,6 +828,7 @@ class Connection(ansible.plugins.connection.ConnectionBase): process to establish the real connection on our behalf, or return a reference to the existing one. """ + import epdb; epdb.set_trace() if self.connected: return diff --git a/ansible_mitogen/strategy.py b/ansible_mitogen/strategy.py index 9dcf035e..b1f744d5 100644 --- a/ansible_mitogen/strategy.py +++ b/ansible_mitogen/strategy.py @@ -165,6 +165,8 @@ def wrap_connection_loader__get(name, *args, **kwargs): While a Mitogen strategy is active, rewrite connection_loader.get() calls for some transports into requests for a compatible Mitogen transport. """ + # THIS ISN'T BEING CALLED NOW + import epdb; epdb.set_trace() if name in REDIRECTED_CONNECTION_PLUGINS: name = 'mitogen_' + name