From ab3475e3f9db7cd471f93b35f3bbc2930f9cf07f Mon Sep 17 00:00:00 2001 From: Eric Coutu Date: Tue, 17 Jul 2018 00:09:58 -0400 Subject: [PATCH] Explicitly pass HTTP method to fetch_url --- lib/ansible/modules/monitoring/rollbar_deployment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/monitoring/rollbar_deployment.py b/lib/ansible/modules/monitoring/rollbar_deployment.py index fdae576ddc..4125c1319b 100644 --- a/lib/ansible/modules/monitoring/rollbar_deployment.py +++ b/lib/ansible/modules/monitoring/rollbar_deployment.py @@ -120,7 +120,7 @@ def main(): try: data = urlencode(params) - response, info = fetch_url(module, url, data=data) + response, info = fetch_url(module, url, data=data, method='POST') except Exception as e: module.fail_json(msg='Unable to notify Rollbar: %s' % to_native(e), exception=traceback.format_exc()) else: