From 16c2207d21dd0f2d1829d9797097ee7528bce07b Mon Sep 17 00:00:00 2001 From: Benjamin Curtis Date: Tue, 30 May 2017 13:01:42 -0700 Subject: [PATCH] Fix return code (#23592) The Honeybadger API returns 201 for success, not 200. --- lib/ansible/modules/monitoring/honeybadger_deployment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/monitoring/honeybadger_deployment.py b/lib/ansible/modules/monitoring/honeybadger_deployment.py index f9e7c07b852..607c7af9fca 100644 --- a/lib/ansible/modules/monitoring/honeybadger_deployment.py +++ b/lib/ansible/modules/monitoring/honeybadger_deployment.py @@ -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))