summaryrefslogtreecommitdiff
path: root/web_infrastructure
diff options
context:
space:
mode:
authorRudi Meyer <hello@rudimeyer.dk>2016-05-02 14:48:03 +0200
committerBrian Coca <bcoca@ansible.com>2016-05-02 08:48:03 -0400
commit28ae506c12a78740130b67a7f6ebef54088746dd (patch)
treee0cc03fea9c771691ec2dcac3c6848c9b4480c48 /web_infrastructure
parent1846de28095794f96914f10136af51f4e2676710 (diff)
downloadansible-modules-extras-28ae506c12a78740130b67a7f6ebef54088746dd.tar.gz
Jira will return a HTTP status code 201 on some actions, fx. 'comment'. (#2115)
Diffstat (limited to 'web_infrastructure')
-rwxr-xr-x[-rw-r--r--]web_infrastructure/jira.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/web_infrastructure/jira.py b/web_infrastructure/jira.py
index dded069f..42d5e092 100644..100755
--- a/web_infrastructure/jira.py
+++ b/web_infrastructure/jira.py
@@ -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()