From a1a7d6c46247f313a8a9c2a1878e034324894c4b Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Tue, 23 Jun 2015 15:17:26 -0700 Subject: [PATCH] Fix forwarding the user-given params from fetch_url() to open_url() --- lib/ansible/module_utils/urls.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/module_utils/urls.py b/lib/ansible/module_utils/urls.py index 2725980fcb5..54bdd8d2d67 100644 --- a/lib/ansible/module_utils/urls.py +++ b/lib/ansible/module_utils/urls.py @@ -504,8 +504,8 @@ def fetch_url(module, url, data=None, headers=None, method=None, r = None info = dict(url=url) try: - r = open_url(url, data=None, headers=None, method=None, - use_proxy=True, force=False, last_mod_time=None, timeout=10, + r = open_url(url, data=data, headers=headers, method=method, + use_proxy=use_proxy, force=force, last_mod_time=last_mod_time, timeout=timeout, validate_certs=validate_certs, url_username=username, url_password=password, http_agent=http_agent) info.update(r.info())