From db5b65f5d618859ebb23c815797f7d88057c7fea Mon Sep 17 00:00:00 2001 From: Dag Wieers Date: Mon, 24 Sep 2018 17:18:06 +0200 Subject: [PATCH] win_get_url: Clarify the encoded slash issue (#45376) * win_get_url; Clarify the encoded slash issue --- lib/ansible/modules/windows/win_get_url.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/windows/win_get_url.py b/lib/ansible/modules/windows/win_get_url.py index 9fe6ffa795..60cbfe59fd 100644 --- a/lib/ansible/modules/windows/win_get_url.py +++ b/lib/ansible/modules/windows/win_get_url.py @@ -4,7 +4,7 @@ # Copyright: (c) 2014, Paul Durivage , and others # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) -# this is a windows documentation stub. actual code lives in the .ps1 +# This is a windows documentation stub. actual code lives in the .ps1 # file of the same name ANSIBLE_METADATA = {'metadata_version': '1.1', @@ -28,6 +28,7 @@ options: description: - The full URL of a file to download. required: yes + type: str dest: description: - The location to save the file at the URL. @@ -53,10 +54,12 @@ options: url_username: description: - Basic authentication username. + type: str aliases: [ username ] url_password: description: - Basic authentication password. + type: str aliases: [ password ] force_basic_auth: description: @@ -76,14 +79,17 @@ options: proxy_url: description: - The full URL of the proxy server to download through. + type: str version_added: "2.0" proxy_username: description: - Proxy authentication username. + type: str version_added: "2.0" proxy_password: description: - Proxy authentication password. + type: str version_added: "2.0" use_proxy: description: @@ -98,6 +104,10 @@ options: type: int default: 10 version_added : '2.4' +notes: +- If your URL includes an escaped slash character (%2F) this module will convert it to a real slash. + This is a result of the behaviour of the System.Uri class as described in + L(the documentation,https://docs.microsoft.com/en-us/dotnet/framework/configure-apps/file-schema/network/schemesettings-element-uri-settings#remarks). ''' EXAMPLES = r'''