projects
/
pve-common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85d5625
)
print_property_string: disk-size is a format, not a type
author
Wolfgang Bumiller
<w.bumiller@proxmox.com>
Thu, 15 Oct 2015 10:12:31 +0000
(12:12 +0200)
committer
Dietmar Maurer
<dietmar@proxmox.com>
Thu, 15 Oct 2015 10:20:50 +0000
(12:20 +0200)
src/PVE/JSONSchema.pm
patch
|
blob
|
blame
|
history
diff --git
a/src/PVE/JSONSchema.pm
b/src/PVE/JSONSchema.pm
index e84c661cbd01e19182dd604d33c5b6024d2b62c9..09ed6b1be5b2abb9e031daa22fbb9fcb1e957e9e 100644
(file)
--- 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 $type
format = $format->{$key}->{format
};
my $value = $data->{$key};
$text .= $comma;
$comma = ',';
- if ($type eq 'disk-size') {
+ if ($type
format && $typeformat
eq 'disk-size') {
$text .= "$key=" . format_size($value);
} else {
$text .= "$key=$value";