mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
win_chocolatey: Fix hang on missing/required base env vars (#51154)
* win_chocolatey: Fix crash on missing/required base env vars * Add changelog fragment
This commit is contained in:
parent
9ec9f18b13
commit
5540d66747
2 changed files with 3 additions and 0 deletions
|
@ -213,6 +213,7 @@ Function Install-Chocolatey {
|
|||
if ($proxy_url) {
|
||||
# the env values are used in the install.ps1 script when getting
|
||||
# external dependencies
|
||||
$environment = [Environment]::GetEnvironmentVariables()
|
||||
$environment.chocolateyProxyLocation = $proxy_url
|
||||
$web_proxy = New-Object -TypeName System.Net.WebProxy -ArgumentList $proxy_url, $true
|
||||
$client.Proxy = $web_proxy
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue