From aab47b58d4fd7c697ca2ca599b9ffe7e01642e73 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Fri, 14 Oct 2011 08:56:55 +0200 Subject: [PATCH] avoid warning when list_param is undefined --- 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 e87c22e..f69ecbf 100644 --- a/data/PVE/JSONSchema.pm +++ b/data/PVE/JSONSchema.pm @@ -860,7 +860,7 @@ sub get_options { my @getopt = (); foreach my $prop (keys %{$schema->{properties}}) { my $pd = $schema->{properties}->{$prop}; - next if $prop eq $list_param; + next if $list_param && $prop eq $list_param; next if defined($uri_param->{$prop}); if ($prop eq 'password' && $pwcallback) { -- 2.39.2