From: Michael Rasmussen <m...@datanom.net> Signed-off-by: Michael Rasmussen <m...@datanom.net> --- PVE/Storage/ZFSPlugin.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/PVE/Storage/ZFSPlugin.pm b/PVE/Storage/ZFSPlugin.pm index 0addd0b..e39b965 100644 --- a/PVE/Storage/ZFSPlugin.pm +++ b/PVE/Storage/ZFSPlugin.pm @@ -177,15 +177,15 @@ sub zfs_parse_lu_list { sub zfs_get_lu_info { my ($list, $source) = @_; - my @list = (); + my @lu_list = (); - return \@list if (!$source || !$list); + return \@lu_list if (!$source || !$list); foreach my $lun (@$list) { - push (@list, $lun) if $lun->{source} =~ /^$source$/; + push (@lu_list, $lun) if $lun->{source} =~ /^$source$/; } - return \@list; + return \@lu_list; } sub zfs_list_lun_mapping_entries { -- 1.8.4.rc3 _______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel