mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 23:54:18 +02:00
+ fix powershell hyperv
This commit is contained in:
parent
c1b600432f
commit
c29df393ca
@ -43,7 +43,7 @@ Try {
|
|||||||
Foreach ($vm in $vms) {
|
Foreach ($vm in $vms) {
|
||||||
$i = 0
|
$i = 0
|
||||||
Foreach ($service in $services) {
|
Foreach ($service in $services) {
|
||||||
if ($services.VMName -eq $vm.VMName) {
|
if ($service.VMName -eq $vm.VMName) {
|
||||||
if ($i -eq 0) {
|
if ($i -eq 0) {
|
||||||
Write-Host "[name=" $vm.VMName "][state=" $vm.State "]"
|
Write-Host "[name=" $vm.VMName "][state=" $vm.State "]"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user