mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
win_uri: fix body with one item in list (#49484)
This commit is contained in:
committed by
Jordan Borean
parent
a24cc8b235
commit
06099bd116
@@ -179,7 +179,7 @@ if ($user -and $password) {
|
||||
}
|
||||
|
||||
if ($null -ne $body) {
|
||||
if ($body -is [Hashtable]) {
|
||||
if ($body -is [System.Collections.IDictionary] -or $body -is [System.Collections.IList]) {
|
||||
$body_string = ConvertTo-Json -InputObject $body -Compress
|
||||
} elseif ($body -isnot [String]) {
|
||||
$body_string = $body.ToString()
|
||||
|
||||
Reference in New Issue
Block a user