From 63ed950ad4baf0faa53652eaa4d895fa41f91451 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Tue, 8 Nov 2011 07:36:11 +0100 Subject: [PATCH] only set list_param if we pass args --- data/PVE/JSONSchema.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = []; } -- 2.39.2