]> git.proxmox.com Git - pve-common.git/commitdiff
print_bash_completion: handle special case passing $arg_param as string
authorDietmar Maurer <dietmar@proxmox.com>
Sat, 19 Sep 2015 08:39:20 +0000 (10:39 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Sat, 19 Sep 2015 08:39:20 +0000 (10:39 +0200)
src/PVE/CLIHandler.pm

index 516d6320bf7d2f752991fc0aa49d4a877b71b474..0863fdc64fbe2560b7a6275a060259f1c3186a18 100644 (file)
@@ -235,6 +235,8 @@ my $print_bash_completion = sub {
     $arg_param //= [];
     $uri_param //= {};
 
+    $arg_param = [ $arg_param ] if !ref($arg_param);
+
     map { $skip_param->{$_} = 1; } @$arg_param;
     map { $skip_param->{$_} = 1; } keys %$uri_param;