]> git.proxmox.com Git - pve-common.git/blobdiff - data/PVE/RESTHandler.pm
fix upid parser for long uptimes
[pve-common.git] / data / PVE / RESTHandler.pm
index d468a4225b764b4661150edae3c033e9c5144fb8..08c10155ef223f5de42d8d0ced3b07c4c35b5273 100644 (file)
@@ -2,7 +2,6 @@ package PVE::RESTHandler;
 
 use strict;
 no strict 'refs'; # our autoload requires this
-
 use warnings;
 use PVE::SafeSyslog;
 use PVE::Exception qw(raise raise_param_exc);
@@ -376,7 +375,7 @@ sub usage_str {
        $arg_hash->{$p} = 1;
        $args .= " " if $args;
        if ($pd->{format} && $pd->{format} =~ m/-list/) {
-           $args .= "{<vmid>}";
+           $args .= "{<$p>}";
        } else {
            $args .= $pd->{optional} ? "[<$p>]" : "<$p>";
        }