mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-23 13:45:18 +02:00
fix issue with hyperv
This commit is contained in:
parent
9238b96fbd
commit
f25521ce74
@ -53,7 +53,10 @@ Try {
|
||||
$item.name = $vm.VMName
|
||||
$item.state = $vm.State.value__
|
||||
$item.integration_services_state = $vm.IntegrationServicesState
|
||||
$item.integration_services_version = $vm.IntegrationServicesVersion.toString()
|
||||
$item.integration_services_version = $null
|
||||
if ($null -ne $vm.IntegrationServicesVersion) {
|
||||
$item.integration_services_version = $vm.IntegrationServicesVersion.toString()
|
||||
}
|
||||
$item.note = $note
|
||||
|
||||
$services = New-Object System.Collections.Generic.List[Hashtable];
|
||||
|
Loading…
x
Reference in New Issue
Block a user