5
0
mirror of git://git.proxmox.com/git/pve-common.git synced 2025-01-24 14:03:35 +03:00

Fix uninitialized subroutine error

This commit is contained in:
Fabian Grünbichler 2016-04-05 12:59:33 +02:00 committed by Dietmar Maurer
parent ca060a8160
commit 6577ea458f

View File

@ -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;