X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=blobdiff_plain;f=src%2FPVE%2FRESTHandler.pm;h=8d6f5779570826337f93c81d73f7f03e74771bf4;hp=ad76b01e410c85587692b4b232b98a4a237a1180;hb=6577ea458f6d79f01a7b16a04d39bde7a0c49794;hpb=ca060a816012c061a53a3dc12490467a654bab35 diff --git a/src/PVE/RESTHandler.pm b/src/PVE/RESTHandler.pm index ad76b01..8d6f577 100644 --- a/src/PVE/RESTHandler.pm +++ b/src/PVE/RESTHandler.pm @@ -574,8 +574,9 @@ sub usage_str { $base = "${name}[n]"; } + my $mapping = defined($stringfilemap) ? &$stringfilemap($name) : undef; $opts .= &$get_property_description($base, 'arg', $prop->{$k}, 'text', - $hidepw, &$stringfilemap($name)); + $hidepw, $mapping); if (!$prop->{$k}->{optional}) { $args .= " " if $args;