]> git.proxmox.com Git - pve-common.git/commitdiff
avoid warning when list_param is undefined
authorDietmar Maurer <dietmar@proxmox.com>
Fri, 14 Oct 2011 06:56:55 +0000 (08:56 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 14 Oct 2011 06:56:55 +0000 (08:56 +0200)
data/PVE/JSONSchema.pm

index e87c22e4d7bced5b301a56326dcb119877778cc9..f69ecbfbca50c2f448e64e28590b2f88ba9c5edd 100644 (file)
@@ -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) {