Closed bozho closed 4 years ago
There was a change in Test-TargetResource when passing a custom source to Test-LatestVersionInstalled
Test-TargetResource
Test-LatestVersionInstalled
Previously, the code was:
if ($AutoUpgrade -and $isInstalled) { $result = Test-LatestVersionInstalled -pName $Name -pSource $Source } else { $result = $isInstalled }
Current code it (line 167 in cChocoPackageInstall.psm1):
167
cChocoPackageInstall.psm1
if ($AutoUpgrade -and $isInstalled) { if ($Source){ [string]$pSource = "-pSource `"$Source`"" } $result = Test-LatestVersionInstalled -pName $Name $pSource } else { $result = $isInstalled }
which results in choco being executed as:
choco
choco upgrade <package> --noop --source="-pSource "<custom_source>""
There was a change in
Test-TargetResource
when passing a custom source toTest-LatestVersionInstalled
Previously, the code was:
Current code it (line
167
incChocoPackageInstall.psm1
):which results in
choco
being executed as: