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