[pve-devel] [PATCH 04/09] Fix small variable name conflict.

mir at datanom.net mir at datanom.net
Mon Aug 12 19:55:30 CEST 2013


From: Michael Rasmussen <mir at datanom.net>

Signed-off-by: Michael Rasmussen <mir at 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.rc2




More information about the pve-devel mailing list