Do a better job at error detection in runners

This commit is contained in:
Joseph Hall 2017-01-25 16:51:18 -07:00
parent d906e8fadb
commit 0142b0bcb3

View File

@ -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,