]> git.proxmox.com Git - pve-common.git/blobdiff - data/PVE/JSONSchema.pm
avoid warning when list_param is undefined
[pve-common.git] / 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) {