1
0
Fork 0
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:
Christopher Johnston 2012-03-28 14:09:11 -07:00
parent f06ec76fdb
commit 15e781eb51

View file

@ -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):