From: Dietmar Maurer Date: Tue, 8 Nov 2011 06:36:11 +0000 (+0100) Subject: only set list_param if we pass args X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=commitdiff_plain;h=63ed950ad4baf0faa53652eaa4d895fa41f91451 only set list_param if we pass args --- diff --git a/data/PVE/JSONSchema.pm b/data/PVE/JSONSchema.pm index c97454d..a3dc61e 100644 --- a/data/PVE/JSONSchema.pm +++ b/data/PVE/JSONSchema.pm @@ -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 = []; }