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

Wolfgang Bumiller w.bumiller at proxmox.com
Wed Feb 15 11:15:36 CET 2017


applied

On Tue, Feb 14, 2017 at 02:36:31PM +0100, Emmanuel Kasper wrote:
> 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