Permalink
Browse files

Modified check for missing member parameters to check all three for null

  • Loading branch information...
jensotto committed Sep 26, 2018
1 parent 577094d commit af1c43f747af36d80a158d80474eca489b7a23b1
@@ -38,7 +38,7 @@ function Get-TargetResource
"MembersToExclude parameters")
}
if ($null -eq $Members -and !$MembersToInclude -and !$MembersToExclude)
if ($null -eq $Members -and $null -eq $MembersToInclude -and $null -eq $MembersToExclude)
{
throw ("At least one of the following parameters must be specified: Members, " + `
"MembersToInclude, MembersToExclude")
@@ -150,7 +150,7 @@ function Set-TargetResource
"MembersToExclude parameters")
}
if ($null -eq $Members -and !$MembersToInclude -and !$MembersToExclude)
if ($null -eq $Members -and $null -eq $MembersToInclude -and $null -eq $MembersToExclude)
{
throw ("At least one of the following parameters must be specified: Members, " + `
"MembersToInclude, MembersToExclude")

0 comments on commit af1c43f

Please sign in to comment.