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:
parent
fda13deb08
commit
913afa9a99
1 changed files with 1 additions and 1 deletions
2
lib/ansible/modules/extras/web_infrastructure/jira.py
Normal file → Executable file
2
lib/ansible/modules/extras/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