From: Dietmar Maurer Date: Wed, 13 Jun 2018 06:06:03 +0000 (+0200) Subject: update copy of PVE/JSONSchema.pm X-Git-Url: https://git.proxmox.com/?p=pve-client.git;a=commitdiff_plain;h=661012f85d270843746d8b038dcb16957d40953b update copy of PVE/JSONSchema.pm --- 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}) {