Merge pull request #2109 from Osterjour/patch-1
Change success status code to 202
This commit is contained in:
commit
38874103c8
1 changed files with 1 additions and 1 deletions
|
@ -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':
|
||||||
|
|
Loading…
Reference in a new issue