mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-02 00:33:09 +00:00
stop reading from url on error
This commit is contained in:
@@ -62,7 +62,7 @@ Else {
|
||||
|
||||
$stream = New-Object System.IO.StreamReader($response.GetResponseStream())
|
||||
|
||||
$stream.ReadToEnd() | Set-Content -Path $dest -Force
|
||||
$stream.ReadToEnd() | Set-Content -Path $dest -Force -ErrorAction Stop
|
||||
|
||||
$result.changed = $true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user