Fix return code (#23592)

The Honeybadger API returns 201 for success, not 200.
pull/24865/merge
Benjamin Curtis 8 years ago committed by René Moser
parent 23324bdda0
commit 16c2207d21

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

Loading…
Cancel
Save