diff options
author | Jordan Borean <jborean93@gmail.com> | 2020-02-04 10:43:33 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-04 10:43:33 +1000 |
commit | 6d792838e49103bef076d5c4807e92a2cfc71015 (patch) | |
tree | 2152c4d222dc7681a03fd6226d5709a1c76209cb /lib/ansible/modules/windows/win_uri.ps1 | |
parent | be9471b251d8ad76b7e1866a871d79b8b0e3255a (diff) | |
download | ansible-6d792838e49103bef076d5c4807e92a2cfc71015.tar.gz |
Move url option from util to individual modules (#67068)
Diffstat (limited to 'lib/ansible/modules/windows/win_uri.ps1')
-rw-r--r-- | lib/ansible/modules/windows/win_uri.ps1 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ansible/modules/windows/win_uri.ps1 b/lib/ansible/modules/windows/win_uri.ps1 index a84d7ed8d8..09ccf1b0b3 100644 --- a/lib/ansible/modules/windows/win_uri.ps1 +++ b/lib/ansible/modules/windows/win_uri.ps1 @@ -12,6 +12,7 @@ $spec = @{ options = @{ + url = @{ type = "str"; required = $true } content_type = @{ type = "str" } body = @{ type = "raw" } dest = @{ type = "path" } @@ -73,7 +74,7 @@ if ($removes -and -not (Test-AnsiblePath -Path $removes)) { $module.ExitJson() } -$client = Get-AnsibleWebRequest -Module $module +$client = Get-AnsibleWebRequest -Uri $url -Module $module if ($null -ne $content_type) { $client.ContentType = $content_type |