mirror of
https://git.proxmox.com/git/pve-common
synced 2025-07-25 22:06:58 +00:00
cli: print_text_table: ensure default is not undefined
Default to printing '', if no default is provided for a column. Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
This commit is contained in:
parent
f6c4a56381
commit
eb3dae233f
@ -448,7 +448,7 @@ sub print_text_table {
|
|||||||
|
|
||||||
push @keys, $key;
|
push @keys, $key;
|
||||||
push @titles, $title;
|
push @titles, $title;
|
||||||
$defaults{$key} = $default;
|
$defaults{$key} = $default // '';
|
||||||
|
|
||||||
# calculate maximal print width and cutoff
|
# calculate maximal print width and cutoff
|
||||||
my $titlelen = length($title);
|
my $titlelen = length($title);
|
||||||
|
Loading…
Reference in New Issue
Block a user