Jira will return a HTTP status code 201 on some actions, fx. 'comment'. (#2115)

This commit is contained in:
Rudi Meyer 2016-05-02 14:48:03 +02:00 committed by Brian Coca
parent 1846de2809
commit 28ae506c12

2
web_infrastructure/jira.py Normal file → Executable file
View file

@ -187,7 +187,7 @@ def request(url, user, passwd, data=None, method=None):
headers={'Content-Type':'application/json',
'Authorization':"Basic %s" % auth})
if info['status'] not in (200, 204):
if info['status'] not in (200, 201, 204):
module.fail_json(msg=info['msg'])
body = response.read()