issue #168: ansible: Mitogen must also ignore the extra arguments.

This commit is contained in:
David Wilson 2018-03-26 11:51:19 +05:45
parent 26051caf4c
commit 198bec3320
1 changed files with 2 additions and 1 deletions

View File

@ -82,7 +82,7 @@ class Connection(ansible.plugins.connection.ConnectionBase):
#: Set to 'mitogen_ssh_discriminator' by on_action_run()
mitogen_ssh_discriminator = None
def __init__(self, play_context, new_stdin, original_transport):
def __init__(self, play_context, new_stdin, original_transport, **kwargs):
assert ansible_mitogen.process.MuxProcess.unix_listener_path, (
'The "mitogen" connection plug-in may only be instantiated '
'by the "mitogen" strategy plug-in.'
@ -90,6 +90,7 @@ class Connection(ansible.plugins.connection.ConnectionBase):
self.original_transport = original_transport
self.transport = original_transport
self.kwargs = kwargs
super(Connection, self).__init__(play_context, new_stdin)
def __del__(self):