mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 13:50:22 -07:00
fix win_unzip and win_share Powershell cmdlets output invalid JSONs (#42713)
This commit is contained in:
parent
e3521776f5
commit
b2527c55c3
2 changed files with 24 additions and 25 deletions
|
@ -101,7 +101,7 @@ $ext = [System.IO.Path]::GetExtension($src)
|
|||
|
||||
If (-Not (Test-Path -LiteralPath $dest -PathType Container)){
|
||||
Try{
|
||||
New-Item -ItemType "directory" -path $dest -WhatIf:$check_mode
|
||||
New-Item -ItemType "directory" -path $dest -WhatIf:$check_mode | out-null
|
||||
} Catch {
|
||||
Fail-Json -obj $result -message "Error creating '$dest' directory! Msg: $($_.Exception.Message)"
|
||||
}
|
||||
|
@ -180,5 +180,4 @@ If ($delete_archive){
|
|||
}
|
||||
$result.removed = $true
|
||||
}
|
||||
|
||||
Exit-Json $result
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue