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

Dietmar Maurer dietmar at proxmox.com
Wed Jun 27 11:44:49 CEST 2018


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;
-- 
2.11.0



More information about the pve-devel mailing list