]> git.proxmox.com Git - pve-common.git/commitdiff
print_property_string: correctly implement skip parameter
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 12 May 2016 05:25:51 +0000 (07:25 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 12 May 2016 05:25:51 +0000 (07:25 +0200)
src/PVE/JSONSchema.pm

index f70bf97e9834992c7345204c716d65711c3c1b0d..f90d98c590f279a6461493562f2cee9020be71b7 100644 (file)
@@ -1593,7 +1593,7 @@ sub print_property_string {
        }
     };
 
        }
     };
 
-    my $done = {};
+    my $done = { map { $_ => 1 } @$skip };
 
     my $cond_add_key = sub {
        my ($key) = @_;
 
     my $cond_add_key = sub {
        my ($key) = @_;