From: Fabian Grünbichler Date: Tue, 5 Apr 2016 10:59:33 +0000 (+0200) Subject: Fix uninitialized subroutine error X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=commitdiff_plain;h=6577ea458f6d79f01a7b16a04d39bde7a0c49794;hp=ca060a816012c061a53a3dc12490467a654bab35 Fix uninitialized subroutine error --- 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;