mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix return code (#23592)
The Honeybadger API returns 201 for success, not 200.
This commit is contained in:
parent
23324bdda0
commit
16c2207d21
1 changed files with 1 additions and 1 deletions
|
@ -136,7 +136,7 @@ def main():
|
||||||
e = get_exception()
|
e = get_exception()
|
||||||
module.fail_json(msg='Unable to notify Honeybadger: %s' % e)
|
module.fail_json(msg='Unable to notify Honeybadger: %s' % e)
|
||||||
else:
|
else:
|
||||||
if info['status'] == 200:
|
if info['status'] == 201:
|
||||||
module.exit_json(changed=True)
|
module.exit_json(changed=True)
|
||||||
else:
|
else:
|
||||||
module.fail_json(msg="HTTP result code: %d connecting to %s" % (info['status'], url))
|
module.fail_json(msg="HTTP result code: %d connecting to %s" % (info['status'], url))
|
||||||
|
|
Loading…
Reference in a new issue