From 2fff84d9292200eca643555f4494aef21d3a0f63 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Fri, 2 Oct 2015 11:02:49 +0200 Subject: [PATCH] print_simple_pod_manpage: fix test for "not initialized" --- src/PVE/CLIHandler.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"; -- 2.39.2