diff --git a/lib/ansible/module_utils/urls.py b/lib/ansible/module_utils/urls.py index 46e1e2d8913..26af6f2d707 100644 --- a/lib/ansible/module_utils/urls.py +++ b/lib/ansible/module_utils/urls.py @@ -1012,8 +1012,8 @@ def fetch_url(module, url, data=None, headers=None, method=None, data={...} resp, info = fetch_url(module, "http://example.com", - data=module.jsonify(data) - header={'Content-type': 'application/json'}, + data=module.jsonify(data), + headers={'Content-type': 'application/json'}, method="POST") status_code = info["status"] body = resp.read()