...
|
...
|
@@ -85,14 +85,13 @@ def run_module(): |
|
|
name = module.params['name']
|
|
|
content_type = module.params['content_type']
|
|
|
params = module.params['params']
|
|
|
schema = module.params['schema']
|
|
|
|
|
|
result['check_name'] = module.params['name']
|
|
|
result['url'] = module.params['url']
|
|
|
result['changed'] = False
|
|
|
|
|
|
# check result
|
|
|
ret = check_http_status(url, content_type, schema, params)
|
|
|
ret = check_http_status(url, content_type, params)
|
|
|
if ret['code'] != 200:
|
|
|
module.fail_json(msg='Check Failed: http code:%i, json code: %i, err: %s' % (ret['http_code'], ret['code'], ret['err']), **result)
|
|
|
result['response'] = ret
|
...
|
...
|
|