From: Dietmar Maurer Date: Wed, 27 Jun 2018 09:44:49 +0000 (+0200) Subject: cli: print_text_table: fix for poperties without schema X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=commitdiff_plain;h=ffe4449cd573756d532f384775bb2f34e2f6a740 cli: print_text_table: fix for poperties without schema Signed-off-by: Dietmar Maurer --- 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;