On 6/20/18 1:28 PM, Stoiko Ivanov wrote:
> Default to printing '', if no default is provided for a column.
> 
> Signed-off-by: Stoiko Ivanov <s.iva...@proxmox.com>
> ---
>  src/PVE/CLIHandler.pm | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/PVE/CLIHandler.pm b/src/PVE/CLIHandler.pm
> index c68aae8..206fda0 100644
> --- a/src/PVE/CLIHandler.pm
> +++ b/src/PVE/CLIHandler.pm
> @@ -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);
> 

applied, thanks

_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to