]> git.proxmox.com Git - pve-common.git/blobdiff - data/PVE/JSONSchema.pm
only set list_param if we pass args
[pve-common.git] / 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 = [];
     }