use new airbrake API URL

This commit is contained in:
Bruce Pennypacker 2013-11-20 16:52:15 +00:00
parent 3857d65431
commit cdf10d3a31

View file

@ -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)