mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Do a better job at error detection in runners
This commit is contained in:
parent
d906e8fadb
commit
0142b0bcb3
@ -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…
Reference in New Issue
Block a user