From: Dietmar Maurer Date: Fri, 2 Oct 2015 09:02:49 +0000 (+0200) Subject: print_simple_pod_manpage: fix test for "not initialized" X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=commitdiff_plain;h=2fff84d9292200eca643555f4494aef21d3a0f63;ds=sidebyside print_simple_pod_manpage: fix test for "not initialized" --- diff --git a/src/PVE/CLIHandler.pm b/src/PVE/CLIHandler.pm index b32c288..c75c8dc 100644 --- a/src/PVE/CLIHandler.pm +++ b/src/PVE/CLIHandler.pm @@ -113,7 +113,8 @@ __PACKAGE__->register_method ({ sub print_simple_pod_manpage { my ($podfn, $class, $name, $arg_param, $uri_param) = @_; - die "not initialized" if !($cmddef && $exename && $cli_handler_class); + die "not initialized" if !$cli_handler_class; + my $pwcallback = $cli_handler_class->can('read_password'); my $synopsis = " $name help\n\n";