]> git.proxmox.com Git - pve-common.git/commitdiff
only set list_param if we pass args
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 8 Nov 2011 06:36:11 +0000 (07:36 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 8 Nov 2011 06:36:11 +0000 (07:36 +0100)
data/PVE/JSONSchema.pm

index c97454dceb9f77eca491b18f98ce88e94f46aa5c..a3dc61ec5f07c7251541c91672a11a117fb9156b 100644 (file)
@@ -887,7 +887,7 @@ sub get_options {
        my $pd = $schema->{properties}->{$list_param} ||
            die "no schema for list_param";
 
-       $opts->{$list_param} = $args;
+       $opts->{$list_param} = $args if scalar($args);
        $args = [];
     }