]> git.proxmox.com Git - pve-common.git/blobdiff - src/PVE/RESTHandler.pm
pass correct format to $get_property_description()
[pve-common.git] / src / PVE / RESTHandler.pm
index ad76b01e410c85587692b4b232b98a4a237a1180..60e915ba840d0df75688e7193f8ecca54fb8a723 100644 (file)
@@ -552,7 +552,7 @@ sub usage_str {
     foreach my $k (@$arg_param) {
        next if defined($fixed_param->{$k}); # just to be sure
        next if !$prop->{$k}; # just to be sure
-       $argdescr .= &$get_property_description($k, 'fixed', $prop->{$k}, 'text', 0);
+       $argdescr .= &$get_property_description($k, 'fixed', $prop->{$k}, $format, 0);
     }
 
     my $idx_param = {}; # -vlan\d+ -scsi\d+
@@ -574,8 +574,9 @@ sub usage_str {
            $base = "${name}[n]";
        }
 
-       $opts .= &$get_property_description($base, 'arg', $prop->{$k}, 'text',
-                                           $hidepw, &$stringfilemap($name));
+       my $mapping = defined($stringfilemap) ? &$stringfilemap($name) : undef;
+       $opts .= &$get_property_description($base, 'arg', $prop->{$k}, $format,
+                                           $hidepw, $mapping);
 
        if (!$prop->{$k}->{optional}) {
            $args .= " " if $args;