mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Check return type to make sure it's actually an error
This commit is contained in:
parent
430e9376f6
commit
f1a1cad607
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