mirror of
https://git.proxmox.com/git/pve-common
synced 2025-08-08 02:51:19 +00:00
cli: print_text_table: die if no property info not needed anymore
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
ffe4449cd5
commit
ead1edfffd
@ -465,7 +465,6 @@ sub print_text_table {
|
|||||||
for (my $i = 0; $i < $column_count; $i++) {
|
for (my $i = 0; $i < $column_count; $i++) {
|
||||||
my $prop = $props_to_print->[$i];
|
my $prop = $props_to_print->[$i];
|
||||||
my $propinfo = $returnprops->{$prop} // {};
|
my $propinfo = $returnprops->{$prop} // {};
|
||||||
die "undefined property '$prop'" if !$propinfo;
|
|
||||||
|
|
||||||
my $title = $propinfo->{title} // $prop;
|
my $title = $propinfo->{title} // $prop;
|
||||||
my $cutoff = $propinfo->{print_width} // $propinfo->{maxLength};
|
my $cutoff = $propinfo->{print_width} // $propinfo->{maxLength};
|
||||||
|
Loading…
Reference in New Issue
Block a user