From 28ae506c12a78740130b67a7f6ebef54088746dd Mon Sep 17 00:00:00 2001 From: Rudi Meyer Date: Mon, 2 May 2016 14:48:03 +0200 Subject: Jira will return a HTTP status code 201 on some actions, fx. 'comment'. (#2115) --- web_infrastructure/jira.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 web_infrastructure/jira.py (limited to 'web_infrastructure') diff --git a/web_infrastructure/jira.py b/web_infrastructure/jira.py old mode 100644 new mode 100755 index dded069f..42d5e092 --- 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() -- cgit v1.2.1