Skip to content

Commit

Permalink
Addresses issue dsccommunity#1096. Doesn't check properties if login …
Browse files Browse the repository at this point in the history
…is not present.
  • Loading branch information
jpomfret authored and johlju committed Dec 28, 2018
1 parent 457082c commit 09bb495
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DSCResources/MSFT_SqlServerLogin/MSFT_SqlServerLogin.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ function Test-TargetResource
$testPassed = $false
}

if ( $Ensure -eq 'Present' )
if ( $Ensure -eq 'Present' -and $($loginInfo.Ensure) -ne 'Absent' )
{
if ( $LoginType -ne $loginInfo.LoginType )
{
Expand Down

0 comments on commit 09bb495

Please sign in to comment.