summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruce Pennypacker <bpennypacker@care.com>2013-11-20 17:52:15 +0100
committerBruce Pennypacker <bpennypacker@care.com>2013-11-20 17:52:15 +0100
commita694c0c44cf2f4639b799fe9afaad08bc1ff4fa9 (patch)
tree92768740bc62346b80646b6606a005970bed60fa
parentMade URL an optional parameter (diff)
downloadansible-a694c0c44cf2f4639b799fe9afaad08bc1ff4fa9.tar.xz
ansible-a694c0c44cf2f4639b799fe9afaad08bc1ff4fa9.zip
use new airbrake API URL
-rw-r--r--library/monitoring/airbrake_deployment4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/monitoring/airbrake_deployment b/library/monitoring/airbrake_deployment
index b65928c8f3..50a353a5bf 100644
--- a/library/monitoring/airbrake_deployment
+++ b/library/monitoring/airbrake_deployment
@@ -94,7 +94,7 @@ def main():
user=dict(required=False),
repo=dict(required=False),
revision=dict(required=False),
- url=dict(required=False, default='https://airbrake.io/deploys')
+ url=dict(required=False, default='https://api.airbrake.io/deploys.txt')
),
supports_check_mode=True
)
@@ -127,7 +127,7 @@ def main():
req = urllib2.Request(url, urllib.urlencode(params))
result=urllib2.urlopen(req)
except Exception, e:
- module.fail_json(msg="unable to update airbrake via %s : %s" % (url, e))
+ module.fail_json(msg="unable to update airbrake via %s?%s : %s" % (url, urllib.urlencode(params), e))
else:
if result.code == 200:
module.exit_json(changed=True)