]> git.proxmox.com Git - pve-common.git/commitdiff
pass correct format to $get_property_description()
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 7 Apr 2016 05:52:35 +0000 (07:52 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 7 Apr 2016 05:52:35 +0000 (07:52 +0200)
src/PVE/RESTHandler.pm

index 8d6f5779570826337f93c81d73f7f03e74771bf4..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+
@@ -575,7 +575,7 @@ sub usage_str {
        }
 
        my $mapping = defined($stringfilemap) ? &$stringfilemap($name) : undef;
-       $opts .= &$get_property_description($base, 'arg', $prop->{$k}, 'text',
+       $opts .= &$get_property_description($base, 'arg', $prop->{$k}, $format,
                                            $hidepw, $mapping);
 
        if (!$prop->{$k}->{optional}) {