[pve-devel] applied: [PATCH pve-common] cli: print_text_table: fix for poperties without schema

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Jun 27 11:50:17 CEST 2018


On 6/27/18 11:44 AM, Dietmar Maurer wrote:
> Signed-off-by: Dietmar Maurer <dietmar at 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 b939a22..0502c48 100644
> --- a/src/PVE/CLIHandler.pm
> +++ b/src/PVE/CLIHandler.pm
> @@ -464,7 +464,7 @@ sub print_text_table {
>  
>      for (my $i = 0; $i < $column_count; $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;
> 

applied, thanks!



More information about the pve-devel mailing list