handle datacenter without cluster, cluster without esx
This commit is contained in:
parent
566598c04e
commit
d6ce990c1b
|
@ -98,6 +98,7 @@ sub run {
|
|||
next if (!defined($childs));
|
||||
|
||||
foreach my $child (@{$childs}) {
|
||||
next if (!$child->childEntity);
|
||||
my %types = map { $_ => 1 } @{$child->childType};
|
||||
next if (!defined($types{ComputeResource}));
|
||||
my @properties = ('name', 'host');
|
||||
|
@ -106,6 +107,8 @@ sub run {
|
|||
next if (!defined($clusters));
|
||||
|
||||
foreach my $cluster (@{$clusters}) {
|
||||
next if (!$cluster->host);
|
||||
|
||||
my @properties = ('name', 'vm', 'config.virtualNicManagerInfo.netConfig', 'config.product.version',
|
||||
'config.product.productLineId', 'hardware.systemInfo.vendor', 'hardware.systemInfo.model',
|
||||
'hardware.systemInfo.uuid', 'runtime.powerState', 'runtime.inMaintenanceMode', 'runtime.connectionState');
|
||||
|
|
Loading…
Reference in New Issue