From 913afa9a99e3bfa881f7bae97fba009708a12fda Mon Sep 17 00:00:00 2001 From: Rudi Meyer Date: Mon, 2 May 2016 14:48:03 +0200 Subject: [PATCH] Jira will return a HTTP status code 201 on some actions, fx. 'comment'. (#2115) --- lib/ansible/modules/extras/web_infrastructure/jira.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 lib/ansible/modules/extras/web_infrastructure/jira.py diff --git a/lib/ansible/modules/extras/web_infrastructure/jira.py b/lib/ansible/modules/extras/web_infrastructure/jira.py old mode 100644 new mode 100755 index dded069f743..42d5e092974 --- a/lib/ansible/modules/extras/web_infrastructure/jira.py +++ b/lib/ansible/modules/extras/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()