From 26051caf4c727e695e98eb184aec14109e940d75 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Mon, 26 Mar 2018 11:44:37 +0545 Subject: [PATCH] ansible: Pass through connection loader kwargs; closes #168 --- ansible_mitogen/strategy.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ansible_mitogen/strategy.py b/ansible_mitogen/strategy.py index 11fc6d7e..078ba921 100644 --- a/ansible_mitogen/strategy.py +++ b/ansible_mitogen/strategy.py @@ -70,14 +70,13 @@ def wrap_action_loader__get(name, *args, **kwargs): return adorned_klass(*args, **kwargs) -def wrap_connection_loader__get(name, play_context, new_stdin): +def wrap_connection_loader__get(name, play_context, new_stdin, **kwargs): """ While the mitogen strategy is active, rewrite connection_loader.get() calls for the 'ssh' and 'local' transports into corresponding requests for the 'mitogen' connection type, passing the original transport name into it as an argument, so that it can emulate the original type. """ - kwargs = {} if name in ('ssh', 'local', 'docker'): kwargs['original_transport'] = name name = 'mitogen'