From 5f3f697dcd95c7b6399188e9c9dea6d3cc1394dd Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Thu, 15 Oct 2015 12:12:31 +0200 Subject: [PATCH] print_property_string: disk-size is a format, not a type --- src/PVE/JSONSchema.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PVE/JSONSchema.pm b/src/PVE/JSONSchema.pm index e84c661..09ed6b1 100644 --- a/src/PVE/JSONSchema.pm +++ b/src/PVE/JSONSchema.pm @@ -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"; -- 2.39.2