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

pull/18777/head
Rudi Meyer 9 years ago committed by Matt Clay
parent fda13deb08
commit 913afa9a99

@ -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…
Cancel
Save