1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix forwarding the user-given params from fetch_url() to open_url()

This commit is contained in:
Toshio Kuratomi 2015-06-23 15:17:26 -07:00
parent 7b4ff28b87
commit a1a7d6c462

View file

@ -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())