From: Dietmar Maurer Date: Fri, 14 Oct 2011 06:56:55 +0000 (+0200) Subject: avoid warning when list_param is undefined X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=commitdiff_plain;h=aab47b58d4fd7c697ca2ca599b9ffe7e01642e73 avoid warning when list_param is undefined --- 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) {