Check return type to make sure it's actually an error

This commit is contained in:
Colton Myers 2015-11-13 16:18:55 -07:00
parent 430e9376f6
commit f1a1cad607

View file

@ -545,7 +545,7 @@ class SSH(object):
self.cache_job(jid, host, ret[host], fun)
ret = self.key_deploy(host, ret)
if ret[host].get('stderr', '').startswith('ssh:'):
if isinstance(ret[host], dict) and ret[host].get('stderr', '').startswith('ssh:'):
ret[host] = ret[host]['stderr']
if not isinstance(ret[host], dict):