1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-06-07 00:37:06 +00:00

stop reading from url on error

This commit is contained in:
Tal Auslander 2015-06-28 13:45:48 +03:00 committed by Matt Clay
parent 9c6d829991
commit 64f19fc4c6

View file

@ -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
}