mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
add exception check for paramiko if older then 1.7
This commit is contained in:
parent
f06ec76fdb
commit
15e781eb51
1 changed files with 4 additions and 1 deletions
|
@ -69,7 +69,10 @@ class ParamikoConnection(object):
|
|||
port=self.runner.remote_port
|
||||
)
|
||||
except Exception, e:
|
||||
raise errors.AnsibleConnectionFailed(str(e))
|
||||
if str(e).find("PID check failed") != -1:
|
||||
raise errors.AnsibleError("paramiko version issue, please upgrade paramiko on the overlord")
|
||||
else:
|
||||
raise errors.AnsibleConnectionFailed(str(e))
|
||||
return self
|
||||
|
||||
def exec_command(self, cmd):
|
||||
|
|
Loading…
Reference in a new issue