nexenta: skip disks whith no owner

We also do this for LVM. Else I get:

> qm rescan --vmid 100
Use of uninitialized value $owner in string ne at /usr/share/perl5/PVE/Storage/NexentaPlugin.pm line 356.
This commit is contained in:
Dietmar Maurer
2013-05-27 06:38:14 +02:00
parent 72d9f66e51
commit c55a499dfe

View File

@ -112,6 +112,8 @@ sub nexenta_list_zvol {
if ($image =~ m/^((vm|base)-(\d+)-\S+)$/) {
$owner = $3;
} else {
next;
}
my $props = nexenta_get_zvol_props($scfg, $zvol);