mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-28 16:14:21 +02:00
fix(discovery): exclude vm object without uuid (not real vm)
This commit is contained in:
parent
08c1defb1f
commit
cf0d87c8bd
@ -153,6 +153,7 @@ sub run {
|
|||||||
|
|
||||||
foreach my $vm (@{$vms}) {
|
foreach my $vm (@{$vms}) {
|
||||||
next if ($vm->{'config.template'} eq 'true');
|
next if ($vm->{'config.template'} eq 'true');
|
||||||
|
next if (!defined($vm{uuid}) || $vm{uuid} eq '');
|
||||||
my %vm;
|
my %vm;
|
||||||
|
|
||||||
$vm{type} = 'vm';
|
$vm{type} = 'vm';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user