]> git.proxmox.com Git - pve-common.git/blobdiff - src/PVE/JSONSchema.pm
print_property_string: disk-size is a format, not a type
[pve-common.git] / src / PVE / JSONSchema.pm
index e84c661cbd01e19182dd604d33c5b6024d2b62c9..09ed6b1be5b2abb9e031daa22fbb9fcb1e957e9e 100644 (file)
@@ -582,11 +582,11 @@ sub print_property_string {
        delete $required{$key};
        next if $skipped{$key};
 
-       my $type = $format->{$key}->{type};
+       my $typeformat = $format->{$key}->{format};
        my $value = $data->{$key};
        $text .= $comma;
        $comma = ',';
-       if ($type eq 'disk-size') {
+       if ($typeformat && $typeformat eq 'disk-size') {
            $text .= "$key=" . format_size($value);
        } else {
            $text .= "$key=$value";