[pve-devel] r5719 - pve-manager/pve2/lib/PVE/API2

svn-commits at proxmox.com svn-commits at proxmox.com
Thu Mar 17 12:02:29 CET 2011


Author: dietmar
Date: 2011-03-17 12:02:29 +0100 (Thu, 17 Mar 2011)
New Revision: 5719

Modified:
   pve-manager/pve2/lib/PVE/API2/Cluster.pm
Log:
fix get_nodelist


Modified: pve-manager/pve2/lib/PVE/API2/Cluster.pm
===================================================================
--- pve-manager/pve2/lib/PVE/API2/Cluster.pm	2011-03-17 11:00:43 UTC (rev 5718)
+++ pve-manager/pve2/lib/PVE/API2/Cluster.pm	2011-03-17 11:02:29 UTC (rev 5719)
@@ -125,8 +125,7 @@
 	    next if !$rpcenv->check($user, "/storage/$storeid", [ 'Datastore.Audit' ]);
 
 	    # we create a entry for each node
-	    foreach my $nd (@$nodes) {
-		my $node = $nd->{node};
+	    foreach my $node (@$nodes) {
 		# fixme: check if storage is available on this node
 		my $entry = { 
 		    name => "$storeid ($node)", 




More information about the pve-devel mailing list