mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 11:51:26 -07:00
Makes ports configurable for fireball. Note port defaults really belong in the connection plugins, not runner, which can be refactored later.
This commit is contained in:
parent
612561ad0e
commit
04954dbc1e
3 changed files with 23 additions and 10 deletions
|
@ -31,9 +31,9 @@ except ImportError:
|
|||
pass
|
||||
|
||||
class Connection(object):
|
||||
''' SSH based connections with Paramiko '''
|
||||
''' ZeroMQ accelerated connection '''
|
||||
|
||||
def __init__(self, runner, host, port=None):
|
||||
def __init__(self, runner, host, port):
|
||||
|
||||
self.runner = runner
|
||||
|
||||
|
@ -45,9 +45,12 @@ class Connection(object):
|
|||
self.key = utils.key_for_hostname(host)
|
||||
self.context = None
|
||||
self.socket = None
|
||||
# port passed in is the SSH port, which we ignore
|
||||
self.port = constants.ZEROMQ_PORT
|
||||
|
||||
|
||||
if port is None:
|
||||
self.port = constants.ZEROMQ_PORT
|
||||
else:
|
||||
self.port = port
|
||||
|
||||
def connect(self):
|
||||
''' activates the connection object '''
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue