From 661012f85d270843746d8b038dcb16957d40953b Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Wed, 13 Jun 2018 08:06:03 +0200 Subject: [PATCH] update copy of PVE/JSONSchema.pm --- PVE/JSONSchema.pm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/PVE/JSONSchema.pm b/PVE/JSONSchema.pm index edd1caf..f014dc3 100644 --- a/PVE/JSONSchema.pm +++ b/PVE/JSONSchema.pm @@ -1407,7 +1407,15 @@ sub get_options { if scalar(@$args) != 0; } } else { - raise("not enough arguments\n", code => HTTP_BAD_REQUEST) if ref($arg_param) && scalar(@$arg_param); + if (ref($arg_param)) { + foreach my $arg_name (@$arg_param) { + if ($arg_name eq 'extra-args') { + $opts->{'extra-args'} = []; + } else { + raise("not enough arguments\n", code => HTTP_BAD_REQUEST); + } + } + } } if (my $pd = $schema->{properties}->{password}) { -- 2.39.2