[pve-devel] r5146 - pve-common/trunk

svn-commits at proxmox.com svn-commits at proxmox.com
Tue Sep 14 12:07:26 CEST 2010


Author: dietmar
Date: 2010-09-14 10:07:26 +0000 (Tue, 14 Sep 2010)
New Revision: 5146

Modified:
   pve-common/trunk/ChangeLog
   pve-common/trunk/RPCEnvironment.pm
Log:


Modified: pve-common/trunk/ChangeLog
===================================================================
--- pve-common/trunk/ChangeLog	2010-09-14 09:59:09 UTC (rev 5145)
+++ pve-common/trunk/ChangeLog	2010-09-14 10:07:26 UTC (rev 5146)
@@ -1,5 +1,7 @@
 2010-09-14  Proxmox Support Team  <support at proxmox.com>
 
+	* RPCEnvironment.pm (get_nodelist): new helper
+
 	* RESTHandler.pm (register_method): do not validate method (that
 	is too slow - delays startup).
 	(validate_method_schemas): new method to validate all registered

Modified: pve-common/trunk/RPCEnvironment.pm
===================================================================
--- pve-common/trunk/RPCEnvironment.pm	2010-09-14 09:59:09 UTC (rev 5145)
+++ pve-common/trunk/RPCEnvironment.pm	2010-09-14 10:07:26 UTC (rev 5146)
@@ -63,4 +63,18 @@
     return $self->{user};
 }
 
+sub get_nodelist {
+    my ($self) = @_;
+
+    # fixme: return soemthin useful
+    my $nodes = [ 
+	{ node => 'node0'},
+	{ node => 'node1'},
+	{ node => 'node2'},
+	{ node => 'node3'},
+	];
+    
+    return $nodes;
+}
+
 1;




More information about the pve-devel mailing list