5
0
mirror of git://git.proxmox.com/git/pve-common.git synced 2025-02-01 17:46:59 +03:00

Fix example to latest RestHandler

looking at the handle() sub from RestHandler.pm

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

this parameters are not passed anymore
This commit is contained in:
Emmanuel Kasper 2017-02-14 14:36:31 +01:00 committed by Wolfgang Bumiller
parent f5a73bff2c
commit ef73f03b60

View File

@ -166,7 +166,7 @@ __PACKAGE__->register_method ({
type => 'string',
},
code => sub {
my ($conn, $resp, $param) = @_;
my ($param) = @_;
return $param->{text};
}