[pve-devel] [PATCH v2 container 2/2] qemu-server: fix default_key check for multi-key support
Julian Pawlowski
julian at pawlowski.me
Wed Oct 24 08:57:23 CEST 2018
---
src/PVE/JSONSchema.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/PVE/JSONSchema.pm b/src/PVE/JSONSchema.pm
index dbc8507..b94aaca 100644
--- a/src/PVE/JSONSchema.pm
+++ b/src/PVE/JSONSchema.pm
@@ -627,8 +627,8 @@ sub parse_property_string {
die "standalone-only key in comma-separated property list: $k\n"
if ( defined( $res->{$k} )
&& ref( $res->{$k} ) eq "ARRAY"
- && ( $default_key || grep ( /$default_key/, @{ $res->{$k} } ) )
- );
+ && $schema->{default_key}
+ && grep ( /$schema->{default_key}/, @{ $res->{$k} } ) );
if ( $schema->{type} && $schema->{type} eq 'boolean' ) {
$v = parse_boolean($v) // $v;
--
2.19.1
More information about the pve-devel
mailing list