mirror of
https://github.com/ansible/awx.git
synced 2026-01-16 04:10:44 -03: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:
commit
8a917a5b70
@ -155,7 +155,7 @@ def run_module(request, collection_import):
|
||||
try:
|
||||
result = json.loads(module_stdout)
|
||||
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
|
||||
if 'exception' in result:
|
||||
raise Exception('Module encountered error:\n{0}'.format(result['exception']))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user