]> git.proxmox.com Git - pve-manager-legacy.git/commitdiff
pvesh: fix help command
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 7 May 2014 10:31:55 +0000 (12:31 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 7 May 2014 10:31:55 +0000 (12:31 +0200)
bin/pvesh

index 7074c14fafb1381c01c11723392240dde7891d0a..50d610ceca9789ad178ba47f05c96fc09c3e8948 100755 (executable)
--- a/bin/pvesh
+++ b/bin/pvesh
@@ -292,10 +292,11 @@ sub find_resource_methods {
 
     for my $method (qw(GET POST PUT DELETE)) {
        my $uri_param = {};
-       my ($handler, $info, $pm) = PVE::API2->find_handler($method, $path, $uri_param);
+       my $path_match;
+       my ($handler, $info) = PVE::API2->find_handler($method, $path, $uri_param, \$path_match);
        if ($handler && $info && !$ihash->{$info}) {
            $ihash->{$info} = {
-               path => $pm,
+               path => $path_match,
                handler => $handler, 
                info => $info, 
                uri_param => $uri_param,