[pve-devel] r4850 - pve-manager/pve2/lib/PVE

svn-commits at proxmox.com svn-commits at proxmox.com
Mon Jun 28 11:21:00 CEST 2010


Author: dietmar
Date: 2010-06-28 09:21:00 +0000 (Mon, 28 Jun 2010)
New Revision: 4850

Modified:
   pve-manager/pve2/lib/PVE/REST.pm
   pve-manager/pve2/lib/PVE/RESTHandler.pm
Log:
do not pass $conn


Modified: pve-manager/pve2/lib/PVE/REST.pm
===================================================================
--- pve-manager/pve2/lib/PVE/REST.pm	2010-06-28 08:05:42 UTC (rev 4849)
+++ pve-manager/pve2/lib/PVE/REST.pm	2010-06-28 09:21:00 UTC (rev 4850)
@@ -191,7 +191,7 @@
 	params => $params,
     };
 
-    my ($handler, $info) = PVE::API2->find_handler($method, $stack, $conn);
+    my ($handler, $info) = PVE::API2->find_handler($method, $stack);
     if (!$handler || !$info) {
 	return {
 	    status => HTTP_NOT_IMPLEMENTED,

Modified: pve-manager/pve2/lib/PVE/RESTHandler.pm
===================================================================
--- pve-manager/pve2/lib/PVE/RESTHandler.pm	2010-06-28 08:05:42 UTC (rev 4849)
+++ pve-manager/pve2/lib/PVE/RESTHandler.pm	2010-06-28 09:21:00 UTC (rev 4850)
@@ -63,7 +63,7 @@
 }
 
 sub find_handler {
-    my ($class, $method, $stack, $conn) = @_;
+    my ($class, $method, $stack) = @_;
 
     my $info;
     eval {
@@ -91,7 +91,7 @@
 	    # fixme: store $fragments somewhere ?
 	}
 
-	return $subh->find_handle($method, $stack, $conn);
+	return $subh->find_handler($method, $stack);
     }
 
     return ($class, $info);



More information about the pve-devel mailing list