Fix return code (#23592)

The Honeybadger API returns 201 for success, not 200.
(cherry picked from commit 16c2207d21)
pull/25292/head
Benjamin Curtis 9 years ago committed by James Cammarata
parent ec545d7b42
commit cedd0f5da2

@ -137,7 +137,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