Authored by chunhua.zhang

add debug info

... ... @@ -87,14 +87,15 @@ def run_module():
content_type = module.params['content_type']
params = module.params['params']
result['original_message'] = module.params['name']
result['message'] = '%s' % module.params
result['check_name'] = module.params['name']
result['url'] = module.params['url']
result['changed'] = False
# check result
ret = check_http_status(url, content_type, params)
if ret['code'] != 200:
module.fail_json(msg='Check Failed: http res:%i, body %s' % (ret['http_code'], ret['message']), **result)
result['response'] = ret
module.exit_json(**result)
def main():
... ...