From 48a518d9a32aec2be834e88084e36a9924403115 Mon Sep 17 00:00:00 2001 From: Shachaf92 Date: Fri, 5 Jul 2019 00:42:05 +0300 Subject: [PATCH] win_get_url - Fix proxy_url not used correctly (#58738) --- changelogs/fragments/win_get_url-proxy-not-used.yml | 2 ++ lib/ansible/modules/windows/win_get_url.ps1 | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/win_get_url-proxy-not-used.yml diff --git a/changelogs/fragments/win_get_url-proxy-not-used.yml b/changelogs/fragments/win_get_url-proxy-not-used.yml new file mode 100644 index 00000000000..729027305f1 --- /dev/null +++ b/changelogs/fragments/win_get_url-proxy-not-used.yml @@ -0,0 +1,2 @@ +bugfixes: + - "win_get_url - Fix proxy_url not used correctly (https://github.com/ansible/ansible/issues/58691)" \ No newline at end of file diff --git a/lib/ansible/modules/windows/win_get_url.ps1 b/lib/ansible/modules/windows/win_get_url.ps1 index 8f3af457e37..a75f2263502 100644 --- a/lib/ansible/modules/windows/win_get_url.ps1 +++ b/lib/ansible/modules/windows/win_get_url.ps1 @@ -108,7 +108,7 @@ Function Invoke-AnsibleWebRequest { if (-not $UseProxy) { $web_request.Proxy = $null - } elseif ($ProxyUri) { + } elseif ($Proxy) { $web_request.Proxy = $Proxy }