mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
return concise error when ssh fails
This commit is contained in:
parent
cf79722260
commit
5419b98363
1 changed files with 4 additions and 0 deletions
|
@ -544,6 +544,10 @@ class SSH(object):
|
|||
|
||||
self.cache_job(jid, host, ret[host], fun)
|
||||
ret = self.key_deploy(host, ret)
|
||||
|
||||
if ret[host].get('stderr', '').startswith('ssh:'):
|
||||
ret[host] = ret[host]['stderr']
|
||||
|
||||
if not isinstance(ret[host], dict):
|
||||
p_data = {host: ret[host]}
|
||||
elif 'return' not in ret[host]:
|
||||
|
|
Loading…
Add table
Reference in a new issue