* Fixes #33771 * Fixes #33771 - mod 1 * removed some unneeded whitespacepull/4420/head
parent
5b666a5074
commit
1d10a2867c
|
@ -256,18 +256,6 @@ if ($state -eq "absent") {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Set the state of the pool
|
# Set the state of the pool
|
||||||
if (($state -eq "stopped") -and ($pool.State -eq "Started")) {
|
|
||||||
if (-not $check_mode) {
|
|
||||||
try {
|
|
||||||
Stop-WebAppPool -Name $name
|
|
||||||
} catch {
|
|
||||||
Fail-Json $result "Failed to stop Web App Pool $($name): $($_.Exception.Message)"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
$result.changed = $true
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
if ($pool.State -eq "Stopped") {
|
if ($pool.State -eq "Stopped") {
|
||||||
if ($state -eq "started" -or $state -eq "restarted") {
|
if ($state -eq "started" -or $state -eq "restarted") {
|
||||||
if (-not $check_mode) {
|
if (-not $check_mode) {
|
||||||
|
|
Loading…
Reference in New Issue