Commit 15e781eb by Christopher Johnston

add exception check for paramiko if older then 1.7

parent f06ec76f
...@@ -69,7 +69,10 @@ class ParamikoConnection(object): ...@@ -69,7 +69,10 @@ class ParamikoConnection(object):
port=self.runner.remote_port port=self.runner.remote_port
) )
except Exception, e: 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 return self
def exec_command(self, cmd): def exec_command(self, cmd):
......
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