Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mitogen
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
mitogen
Commits
26051caf
Commit
26051caf
authored
Mar 26, 2018
by
David Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ansible: Pass through connection loader kwargs; closes #168
parent
749eddac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
ansible_mitogen/strategy.py
ansible_mitogen/strategy.py
+1
-2
No files found.
ansible_mitogen/strategy.py
View file @
26051caf
...
...
@@ -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'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment