]> git.proxmox.com Git - pve-common.git/commitdiff
CLIHandler: remove spurious abort()
authorStoiko Ivanov <s.ivanov@proxmox.com>
Tue, 30 Jul 2019 12:42:11 +0000 (14:42 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 14 Aug 2019 09:13:06 +0000 (11:13 +0200)
The abort currently cannot be reached, instead the error with the same
message (unknown command '$cmdstr') in handle_cmd is raised.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
src/PVE/CLIHandler.pm

index 2f607cd2a59dce7f4dd7771884b25712d753beed..802ce87aa0c5d7224255319fcc06db407eca6b03 100644 (file)
@@ -190,7 +190,6 @@ sub generate_usage_str {
     my $param_cb = $gen_param_mapping_func->($cli_handler_class);
 
     my ($subcmd, $def, undef, undef, $cmdstr) = resolve_cmd($cmd);
-    $abort->("unknown command '$cmdstr'") if !defined($def) && ref($cmd) eq 'ARRAY';
 
     my $generate;
     $generate = sub {