mirror of
https://git.proxmox.com/git/pve-common
synced 2025-08-16 07:06:09 +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};
|
delete $required{$key};
|
||||||
next if $skipped{$key};
|
next if $skipped{$key};
|
||||||
|
|
||||||
my $type = $format->{$key}->{type};
|
my $typeformat = $format->{$key}->{format};
|
||||||
my $value = $data->{$key};
|
my $value = $data->{$key};
|
||||||
$text .= $comma;
|
$text .= $comma;
|
||||||
$comma = ',';
|
$comma = ',';
|
||||||
if ($type eq 'disk-size') {
|
if ($typeformat && $typeformat eq 'disk-size') {
|
||||||
$text .= "$key=" . format_size($value);
|
$text .= "$key=" . format_size($value);
|
||||||
} else {
|
} else {
|
||||||
$text .= "$key=$value";
|
$text .= "$key=$value";
|
||||||
|
Loading…
Reference in New Issue
Block a user