X-Git-Url: https://git.proxmox.com/?p=pve-client.git;a=blobdiff_plain;f=PVE%2FJSONSchema.pm;h=edd1caf92a073e055f2e80d6d19f67ca1a71f394;hp=0e722b81b0812c104a80eef3e526dec746884baa;hb=00e944c7cab8fefe285fbdeb60e446b3325cee0c;hpb=95b87dd39f8db34c6aa377680a533fc6a0456b19;ds=sidebyside diff --git a/PVE/JSONSchema.pm b/PVE/JSONSchema.pm index 0e722b8..edd1caf 100644 --- a/PVE/JSONSchema.pm +++ b/PVE/JSONSchema.pm @@ -1406,6 +1406,8 @@ sub get_options { raise("too many arguments\n", code => HTTP_BAD_REQUEST) if scalar(@$args) != 0; } + } else { + raise("not enough arguments\n", code => HTTP_BAD_REQUEST) if ref($arg_param) && scalar(@$arg_param); } if (my $pd = $schema->{properties}->{password}) {