handle esx without vms

This commit is contained in:
Colin Gagnaire 2019-06-03 15:39:41 +02:00
parent 83d363ba50
commit 8fc55ad522
1 changed files with 1 additions and 0 deletions

View File

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