[pve-devel] r5434 - pve-storage/pve2/PVE/API2/Storage

svn-commits at proxmox.com svn-commits at proxmox.com
Tue Jan 25 08:48:59 CET 2011


Author: dietmar
Date: 2011-01-25 08:48:59 +0100 (Tue, 25 Jan 2011)
New Revision: 5434

Modified:
   pve-storage/pve2/PVE/API2/Storage/Content.pm
   pve-storage/pve2/PVE/API2/Storage/Status.pm
Log:
call correct function


Modified: pve-storage/pve2/PVE/API2/Storage/Content.pm
===================================================================
--- pve-storage/pve2/PVE/API2/Storage/Content.pm	2011-01-25 07:30:40 UTC (rev 5433)
+++ pve-storage/pve2/PVE/API2/Storage/Content.pm	2011-01-25 07:48:59 UTC (rev 5434)
@@ -391,6 +391,7 @@
 use warnings;
 
 use PVE::RESTHandler;
+use PVE::Cluster;
 
 use base qw(PVE::RESTHandler);
 
@@ -419,8 +420,7 @@
     code => sub {
 	my ($param) = @_;
 
-	my $rpcenv = PVE::RPCEnvironment::get();
-	return $rpcenv->get_nodelist();
+	return PVE::Cluster::get_nodelist();
     }});
 
 1;

Modified: pve-storage/pve2/PVE/API2/Storage/Status.pm
===================================================================
--- pve-storage/pve2/PVE/API2/Storage/Status.pm	2011-01-25 07:30:40 UTC (rev 5433)
+++ pve-storage/pve2/PVE/API2/Storage/Status.pm	2011-01-25 07:48:59 UTC (rev 5434)
@@ -90,6 +90,7 @@
 use warnings;
 
 use PVE::RESTHandler;
+use PVE::Cluster;
 
 use base qw(PVE::RESTHandler);
 
@@ -118,8 +119,7 @@
     code => sub {
 	my ($param) = @_;
 
-	my $rpcenv = PVE::RPCEnvironment::get();
-	return $rpcenv->get_nodelist();
-    }});
+	return PVE::Cluster::get_nodelist();
+   }});
 
 1;



More information about the pve-devel mailing list