Commit 15e781eb by Christopher Johnston

add exception check for paramiko if older then 1.7

parent f06ec76f
......@@ -69,6 +69,9 @@ class ParamikoConnection(object):
port=self.runner.remote_port
)
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))
return self
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment