Merge pull request #28882 from basepi/salt-ssh.stacktrace.28881

[2015.8] salt-ssh: Check return type to make sure it's an error
This commit is contained in:
Colton Myers 2015-11-13 17:14:46 -07:00
commit 5dc7fccb07

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