mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix import in ssh connection
This commit is contained in:
parent
80edea2934
commit
b542dd8466
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ class Connection(object):
|
||||||
elif transport == 'paramiko':
|
elif transport == 'paramiko':
|
||||||
conn = paramiko_ssh.ParamikoConnection(self.runner, host, port)
|
conn = paramiko_ssh.ParamikoConnection(self.runner, host, port)
|
||||||
elif transport == 'ssh':
|
elif transport == 'ssh':
|
||||||
conn = SSHConnection(self.runner, host, port)
|
conn = ssh.SSHConnection(self.runner, host, port)
|
||||||
if conn is None:
|
if conn is None:
|
||||||
raise Exception("unsupported connection type")
|
raise Exception("unsupported connection type")
|
||||||
return conn.connect()
|
return conn.connect()
|
||||||
|
|
Loading…
Reference in a new issue