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

win_uri: Replace -type "string" with -type "str" (#21373)

Type "string" does not exist.
This commit is contained in:
Dag Wieers 2017-02-24 08:35:52 +01:00 committed by Matt Davis
parent 582557bc09
commit 70336c63c9

View file

@ -31,13 +31,13 @@ Function ConvertTo-SnakeCase($input_string) {
# Build Arguments
$params = Parse-Args $args -supports_check_mode $true
$url = Get-AnsibleParam -obj $params -name "url" -type "string" -failifempty $true
$method = Get-AnsibleParam -obj $params "method" -type "string" -default "GET" -validateset "GET","POST","PUT","HEAD","DELETE","OPTIONS","PATCH","TRACE","CONNECT","REFRESH"
$content_type = Get-AnsibleParam -obj $params -name "content_type" -type "string"
$url = Get-AnsibleParam -obj $params -name "url" -type "str" -failifempty $true
$method = Get-AnsibleParam -obj $params "method" -type "str" -default "GET" -validateset "GET","POST","PUT","HEAD","DELETE","OPTIONS","PATCH","TRACE","CONNECT","REFRESH"
$content_type = Get-AnsibleParam -obj $params -name "content_type" -type "str"
# TODO: Why is this not a normal dictionary ?
$headers = Get-AnsibleParam -obj $params -name "headers" -type "string"
$headers = Get-AnsibleParam -obj $params -name "headers" -type "str"
# TODO: Why is this not a normal dictionary ?
$body = Get-AnsibleParam -obj $params -name "body" -type "string"
$body = Get-AnsibleParam -obj $params -name "body" -type "str"
$dest = Get-AnsibleParam -obj $params -name "dest" -type "path"
$use_basic_parsing = Get-AnsibleParam -obj $params -name "use_basic_parsing" -type "bool" -default $true