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}) {
|
||||
next if ($vm->{'config.template'} eq 'true');
|
||||
next if (!defined($vm{uuid}) || $vm{uuid} eq '');
|
||||
my %vm;
|
||||
|
||||
$vm{type} = 'vm';
|
||||
|
|
Loading…
Reference in New Issue