mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Do a better job at error detection in runners
This commit is contained in:
parent
d906e8fadb
commit
0142b0bcb3
1 changed files with 1 additions and 1 deletions
|
@ -653,7 +653,7 @@ def runner(name, **kwargs):
|
|||
**kwargs)
|
||||
|
||||
runner_return = out.get('return')
|
||||
if 'success' in out and not out['success']:
|
||||
if not out.get('success', True) or 'Error' in out.get('return', {}):
|
||||
ret = {
|
||||
'name': name,
|
||||
'result': False,
|
||||
|
|
Loading…
Add table
Reference in a new issue