Fixing bug with stopped state

reviewable/pr18780/r1
Chris Hoffman 11 years ago
parent 24ad45c8e6
commit 3a3a285d96

@ -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