Fixing bug with stopped state

pull/7886/head
Chris Hoffman 11 years ago
parent 844e90093b
commit 1c2d244964

@ -68,7 +68,7 @@ If ($state) {
}
Set-Attr $result "changed" $true;
}
ElseIf ($state -eq "stopped" -and $svcName -ne "Stopped") {
ElseIf ($state -eq "stopped" -and $svc.Status -ne "Stopped") {
try {
Stop-Service -Name $svcName -ErrorAction Stop
}

Loading…
Cancel
Save