From 8fc55ad522613b151a30fed3404d5be92d151135 Mon Sep 17 00:00:00 2001 From: Colin Gagnaire Date: Mon, 3 Jun 2019 15:39:41 +0200 Subject: [PATCH] handle esx without vms --- connectors/vmware/src/centreon/vmware/cmddiscovery.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/connectors/vmware/src/centreon/vmware/cmddiscovery.pm b/connectors/vmware/src/centreon/vmware/cmddiscovery.pm index bd6a0662f..c2f0c7a28 100644 --- a/connectors/vmware/src/centreon/vmware/cmddiscovery.pm +++ b/connectors/vmware/src/centreon/vmware/cmddiscovery.pm @@ -135,6 +135,7 @@ sub run { push @disco_data, \%esx if ($self->{resource_type} eq 'esx'); next if ($self->{resource_type} ne 'vm'); + next if (!$esx->vm); @properties = ('parent', 'config.name', 'config.annotation', 'config.template', 'config.uuid', 'config.version', 'config.guestId', 'guest.guestState', 'guest.hostName', 'guest.ipAddress', 'runtime.powerState');