]> git.proxmox.com Git - pve-common.git/blobdiff - src/PVE/JSONSchema.pm
print_property_string: skip undefined values
[pve-common.git] / src / PVE / JSONSchema.pm
index de2a0bd993957343e4366a2e41fc5be485b98dab..e83d8dea42a3797bc610530bea86f3aca6a6f5ea 100644 (file)
@@ -588,6 +588,7 @@ sub print_property_string {
 
        my $typeformat = $format->{$key}->{format};
        my $value = $data->{$key};
+       next if !defined($value);
        $text .= $comma;
        $comma = ',';
        if ($typeformat && $typeformat eq 'disk-size') {