[pve-devel] [RFC PATCH common] Fix example to latest RestHandler

Emmanuel Kasper e.kasper at proxmox.com
Tue Feb 14 14:36:31 CET 2017


looking at the handle() sub from RestHandler.pm

    my $result = &$func($param);

this parameters are not passed anymore
---
 README.dev | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/README.dev b/README.dev
index a97f1c8..f68c169 100644
--- a/README.dev
+++ b/README.dev
@@ -166,7 +166,7 @@ __PACKAGE__->register_method ({
 	type => 'string',
     },
     code => sub {
-	my ($conn, $resp, $param) = @_;
+	my ($param) = @_;
 
 	return $param->{text};
     }
-- 
2.1.4





More information about the pve-devel mailing list