mirror of
https://git.proxmox.com/git/pve-common
synced 2025-08-14 07:29:49 +00:00
print_property_string: disk-size is a format, not a type
This commit is contained in:
parent
85d5625a15
commit
5f3f697dcd
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user