mirror of
https://git.proxmox.com/git/pve-common
synced 2025-07-24 17:10:49 +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 @titles, $title;
|
||||
$defaults{$key} = $default;
|
||||
$defaults{$key} = $default // '';
|
||||
|
||||
# calculate maximal print width and cutoff
|
||||
my $titlelen = length($title);
|
||||
|
Loading…
Reference in New Issue
Block a user