Commit 26051caf authored by David Wilson's avatar David Wilson

ansible: Pass through connection loader kwargs; closes #168

parent 749eddac
......@@ -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'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment