mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
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:
commit
5dc7fccb07
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue