Watch out for bools

This commit is contained in:
Joseph Hall 2017-01-26 11:00:43 -07:00
parent 0142b0bcb3
commit 94050ff716

View file

@ -653,7 +653,9 @@ def runner(name, **kwargs):
**kwargs)
runner_return = out.get('return')
if not out.get('success', True) or 'Error' in out.get('return', {}):
if isinstance(runner_return, dict) and Error in runner_return:
out['success'] = False
if not out.get('success', True):
ret = {
'name': name,
'result': False,