Merge pull request #2109 from Osterjour/patch-1

Change success status code to 202
reviewable/pr18780/r1
James Cammarata 9 years ago
commit 38874103c8

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

Loading…
Cancel
Save