mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 20:01:25 -07:00
Standardize args/kwargs on connection plugins.
This commit is contained in:
parent
d5d26bab9b
commit
3d25b4a7c0
4 changed files with 4 additions and 4 deletions
|
@ -34,7 +34,7 @@ except ImportError:
|
||||||
class Connection(object):
|
class Connection(object):
|
||||||
''' ZeroMQ accelerated connection '''
|
''' ZeroMQ accelerated connection '''
|
||||||
|
|
||||||
def __init__(self, runner, host, port, **kwargs):
|
def __init__(self, runner, host, port, *args, **kwargs):
|
||||||
|
|
||||||
self.runner = runner
|
self.runner = runner
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ from ansible.callbacks import vvv
|
||||||
class Connection(object):
|
class Connection(object):
|
||||||
''' Local based connections '''
|
''' Local based connections '''
|
||||||
|
|
||||||
def __init__(self, runner, host, port, **kwargs):
|
def __init__(self, runner, host, port, *args, **kwargs):
|
||||||
self.runner = runner
|
self.runner = runner
|
||||||
self.host = host
|
self.host = host
|
||||||
# port is unused, since this is local
|
# port is unused, since this is local
|
||||||
|
|
|
@ -43,7 +43,7 @@ SFTP_CONNECTION_CACHE = {}
|
||||||
class Connection(object):
|
class Connection(object):
|
||||||
''' SSH based connections with Paramiko '''
|
''' SSH based connections with Paramiko '''
|
||||||
|
|
||||||
def __init__(self, runner, host, port, user, password, private_key_file):
|
def __init__(self, runner, host, port, user, password, private_key_file, *args, **kwargs):
|
||||||
|
|
||||||
self.ssh = None
|
self.ssh = None
|
||||||
self.sftp = None
|
self.sftp = None
|
||||||
|
|
|
@ -32,7 +32,7 @@ from ansible import utils
|
||||||
class Connection(object):
|
class Connection(object):
|
||||||
''' ssh based connections '''
|
''' ssh based connections '''
|
||||||
|
|
||||||
def __init__(self, runner, host, port, user, password, private_key_file):
|
def __init__(self, runner, host, port, user, password, private_key_file, *args, **kwargs):
|
||||||
self.runner = runner
|
self.runner = runner
|
||||||
self.host = host
|
self.host = host
|
||||||
self.port = port
|
self.port = port
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue