|
|
@ -94,7 +94,7 @@ def main():
|
|
|
|
user=dict(required=False),
|
|
|
|
user=dict(required=False),
|
|
|
|
repo=dict(required=False),
|
|
|
|
repo=dict(required=False),
|
|
|
|
revision=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
|
|
|
|
supports_check_mode=True
|
|
|
|
)
|
|
|
|
)
|
|
|
@ -127,7 +127,7 @@ def main():
|
|
|
|
req = urllib2.Request(url, urllib.urlencode(params))
|
|
|
|
req = urllib2.Request(url, urllib.urlencode(params))
|
|
|
|
result=urllib2.urlopen(req)
|
|
|
|
result=urllib2.urlopen(req)
|
|
|
|
except Exception, e:
|
|
|
|
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:
|
|
|
|
else:
|
|
|
|
if result.code == 200:
|
|
|
|
if result.code == 200:
|
|
|
|
module.exit_json(changed=True)
|
|
|
|
module.exit_json(changed=True)
|
|
|
|