1
0
Fork 0
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:
Benjamin Curtis 2017-05-30 13:01:42 -07:00 committed by René Moser
parent 23324bdda0
commit 16c2207d21

View file

@ -136,7 +136,7 @@ def main():
e = get_exception()
module.fail_json(msg='Unable to notify Honeybadger: %s' % e)
else:
if info['status'] == 200:
if info['status'] == 201:
module.exit_json(changed=True)
else:
module.fail_json(msg="HTTP result code: %d connecting to %s" % (info['status'], url))