[pve-devel] [PATCH pve-common] disk-format is a format, not a type
Wolfgang Bumiller
w.bumiller at proxmox.com
Thu Oct 15 12:12:31 CEST 2015
---
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 e2d07c3..f4684ce 100644
--- a/src/PVE/JSONSchema.pm
+++ b/src/PVE/JSONSchema.pm
@@ -586,11 +586,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.1.4
More information about the pve-devel
mailing list