diff options
author | Matt Davis <nitzmahone@users.noreply.github.com> | 2016-06-22 11:49:33 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-22 11:49:33 -0700 |
commit | 4fe583e29bb6cb962aaebc9ce886e3bcf7c6c0d7 (patch) | |
tree | a776825df1de407d7418a13d17cc21c5b3e5afc8 /windows | |
parent | 5380812b360ee5e1fafa137c2775621694cf0975 (diff) | |
parent | a4e6e6e2ef0b3b7e3314ac9d60a6f3f2bac93f1b (diff) | |
download | ansible-modules-core-4fe583e29bb6cb962aaebc9ce886e3bcf7c6c0d7.tar.gz |
Merge pull request #3747 from mixmatch/devel
fixed $source null check, reference to $Params
Diffstat (limited to 'windows')
-rw-r--r-- | windows/win_feature.ps1 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/windows/win_feature.ps1 b/windows/win_feature.ps1 index 62960d58..339b79b9 100644 --- a/windows/win_feature.ps1 +++ b/windows/win_feature.ps1 @@ -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 } |