mirror of
https://github.com/ansible/awx.git
synced 2026-03-26 05:15:02 -02:30
Merge pull request #6343 from AlanCoding/fix_sanity
Fix sanity error Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
@@ -155,7 +155,7 @@ def run_module(request, collection_import):
|
|||||||
try:
|
try:
|
||||||
result = json.loads(module_stdout)
|
result = json.loads(module_stdout)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise Exception('Module did not write valid JSON, error: {}, stdout:\n{}'.format(str(e), module_stdout))
|
raise Exception('Module did not write valid JSON, error: {0}, stdout:\n{1}'.format(str(e), module_stdout))
|
||||||
# A module exception should never be a test expectation
|
# A module exception should never be a test expectation
|
||||||
if 'exception' in result:
|
if 'exception' in result:
|
||||||
raise Exception('Module encountered error:\n{0}'.format(result['exception']))
|
raise Exception('Module encountered error:\n{0}'.format(result['exception']))
|
||||||
|
|||||||
Reference in New Issue
Block a user