fix undefined error in thinprovisioningvm
This commit is contained in:
parent
335601da8b
commit
4191b6f350
|
@ -77,7 +77,8 @@ sub run {
|
||||||
|
|
||||||
foreach (@{$entity_view->{'config.hardware.device'}}) {
|
foreach (@{$entity_view->{'config.hardware.device'}}) {
|
||||||
if ($_->isa('VirtualDisk')) {
|
if ($_->isa('VirtualDisk')) {
|
||||||
push @{$data->{$entity_value}->{disks}}, { thin_provisioned => $_->backing->thinProvisioned, name => $_->backing->fileName };
|
next if (!defined($_->{backing}->{thinProvisioned}));
|
||||||
|
push @{$data->{$entity_value}->{disks}}, { thin_provisioned => $_->{backing}->{thinProvisioned}, name => $_->{backing}->{fileName} };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue