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:
parent
49c3ee9050
commit
a4b3b7a2cf
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue