1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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 Matt Clay
parent fda13deb08
commit 913afa9a99

2
lib/ansible/modules/extras/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()