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