fix(discovery): exclude vm object without uuid (not real vm)

This commit is contained in:
Colin Gagnaire 2020-11-02 12:11:43 +01:00 committed by GitHub
parent 08c1defb1f
commit cf0d87c8bd
1 changed files with 1 additions and 0 deletions

View File

@ -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';