mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
add exception check for paramiko if older then 1.7
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user