Merge pull request #2109 from Osterjour/patch-1

Change success status code to 202
This commit is contained in:
James Cammarata 2016-04-28 15:01:30 -04:00
commit 38874103c8

View file

@ -142,7 +142,7 @@ def post_event(module):
headers = {"Content-Type": "application/json"} headers = {"Content-Type": "application/json"}
(response, info) = fetch_url(module, uri, data=json_body, headers=headers) (response, info) = fetch_url(module, uri, data=json_body, headers=headers)
if info['status'] == 200: if info['status'] == 202:
response_body = response.read() response_body = response.read()
response_json = module.from_json(response_body) response_json = module.from_json(response_body)
if response_json['status'] == 'ok': if response_json['status'] == 'ok':