]> git.proxmox.com Git - pve-common.git/commitdiff
print_simple_pod_manpage: fix test for "not initialized"
authorDietmar Maurer <dietmar@proxmox.com>
Fri, 2 Oct 2015 09:02:49 +0000 (11:02 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 2 Oct 2015 09:02:49 +0000 (11:02 +0200)
src/PVE/CLIHandler.pm

index b32c2886e9fc9964da777680d21009790836cab6..c75c8dc9a3cec99e954b0a52a3bc62446ba83b02 100644 (file)
@@ -113,7 +113,8 @@ __PACKAGE__->register_method ({
 sub print_simple_pod_manpage {
     my ($podfn, $class, $name, $arg_param, $uri_param) = @_;
 
 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";
     my $pwcallback = $cli_handler_class->can('read_password');
 
     my $synopsis = " $name help\n\n";