From 20b69017a8f5b7f3f295a746451b8c9822ea7c36 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Thu, 29 Oct 2015 14:56:58 +0100 Subject: [PATCH] print_property_string: skip undefined values --- src/PVE/JSONSchema.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/src/PVE/JSONSchema.pm b/src/PVE/JSONSchema.pm index de2a0bd..e83d8de 100644 --- a/src/PVE/JSONSchema.pm +++ b/src/PVE/JSONSchema.pm @@ -588,6 +588,7 @@ sub print_property_string { my $typeformat = $format->{$key}->{format}; my $value = $data->{$key}; + next if !defined($value); $text .= $comma; $comma = ','; if ($typeformat && $typeformat eq 'disk-size') { -- 2.39.2