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,6 +69,9 @@ class ParamikoConnection(object):
|
||||||
port=self.runner.remote_port
|
port=self.runner.remote_port
|
||||||
)
|
)
|
||||||
except Exception, e:
|
except Exception, 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))
|
raise errors.AnsibleConnectionFailed(str(e))
|
||||||
return self
|
return self
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue