Skip to content

Commit

Permalink
fixed a property name issue in the test method
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob Dean committed May 26, 2016
1 parent bee055a commit 434f174
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DSCResources/MSFT_xScheduledTask/MSFT_xScheduledTask.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -396,9 +396,9 @@ function Test-TargetResource

if ($PSBoundParameters.ContainsKey("Enable") -eq $true)
{
if ($Enable -ne ($currentValues.Settings.Enabled))
if ($Enable -ne ($currentValues.Enable))
{
Write-Verbose -Message "Enable does not match desired state. Current value: $($currentValues.Settings.Enabled) - Desired Vale: $Enable"
Write-Verbose -Message "Enable does not match desired state. Current value: $($currentValues.Enabled) - Desired Vale: $Enable"
return $false
}
}
Expand Down

0 comments on commit 434f174

Please sign in to comment.