Jira will return a HTTP status code 201 on some actions, fx. 'comment'. (#2115)
This commit is contained in:
parent
1846de2809
commit
28ae506c12
1 changed files with 1 additions and 1 deletions
2
web_infrastructure/jira.py
Normal file → Executable file
2
web_infrastructure/jira.py
Normal file → Executable 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()
|
||||
|
|
Loading…
Reference in a new issue