mirror of
https://github.com/ansible/awx.git
synced 2026-03-18 01:17:35 -02:30
sanity tests
This commit is contained in:
@@ -184,7 +184,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: {0}, stdout:\n{1}'.format(str(e), module_stdout))
|
||||
raise Exception('Module did not write valid JSON, error: {0}, stdout:\n{1}'.format(str(e), module_stdout)) from e
|
||||
# A module exception should never be a test expectation
|
||||
if 'exception' in result:
|
||||
if "ModuleNotFoundError: No module named 'tower_cli'" in result['exception']:
|
||||
|
||||
Reference in New Issue
Block a user