parent
3b16ad973c
commit
78e4f176e6
1 changed files with 2 additions and 0 deletions
|
@ -405,6 +405,8 @@ class TaskExecutor:
|
||||||
# the async_wrapper module returns dumped JSON via its stdout
|
# the async_wrapper module returns dumped JSON via its stdout
|
||||||
# response, so we parse it here and replace the result
|
# response, so we parse it here and replace the result
|
||||||
try:
|
try:
|
||||||
|
if 'skipped' in result and result['skipped'] or 'failed' in result and result['failed']:
|
||||||
|
return result
|
||||||
result = json.loads(result.get('stdout'))
|
result = json.loads(result.get('stdout'))
|
||||||
except (TypeError, ValueError) as e:
|
except (TypeError, ValueError) as e:
|
||||||
return dict(failed=True, msg="The async task did not return valid JSON: %s" % str(e))
|
return dict(failed=True, msg="The async task did not return valid JSON: %s" % str(e))
|
||||||
|
|
Loading…
Reference in a new issue