use new airbrake API URL
This commit is contained in:
parent
3857d65431
commit
cdf10d3a31
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue