1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Local connection doesn't need a port.

This commit is contained in:
Michael DeHaan 2012-04-26 19:18:47 -04:00
parent 49c3ee9050
commit a4b3b7a2cf

View file

@ -51,7 +51,7 @@ class Connection(object):
def connect(self, host, port=None):
conn = None
if self.transport == 'local' and self._LOCALHOSTRE.search(host):
conn = LocalConnection(self.runner, host, None)
conn = LocalConnection(self.runner, host)
elif self.transport == 'paramiko':
conn = ParamikoConnection(self.runner, host, port)
if conn is None: