print_property_string: disk-size is a format, not a type

This commit is contained in:
Wolfgang Bumiller 2015-10-15 12:12:31 +02:00 committed by Dietmar Maurer
parent 85d5625a15
commit 5f3f697dcd

View 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";