Merge pull request #3747 from mixmatch/devel

fixed $source null check, reference to $Params
This commit is contained in:
Matt Davis 2016-06-22 11:49:33 -07:00 committed by GitHub
commit 4fe583e29b

View file

@ -63,7 +63,7 @@ If ($state -eq "present") {
$InstallParams.add("IncludeManagementTools",$includemanagementtools)
}
if ($source -ne $null)
if ($source)
{
$InstallParams.add("Source",$source)
}
@ -77,7 +77,7 @@ If ($state -eq "present") {
ElseIf (Get-Command "Add-WindowsFeature" -ErrorAction SilentlyContinue) {
if ($IncludeManagementTools)
{
$Params.Remove("IncludeManagementTools")
$InstallParams.Remove("IncludeManagementTools")
}
$featureresult = Add-WindowsFeature @InstallParams
}