]> git.proxmox.com Git - pve-client.git/commitdiff
update copy of PVE/JSONSchema.pm
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 13 Jun 2018 06:06:03 +0000 (08:06 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 13 Jun 2018 06:08:16 +0000 (08:08 +0200)
PVE/JSONSchema.pm

index edd1caf92a073e055f2e80d6d19f67ca1a71f394..f014dc3f15b5c73dbadb05f865d435f70e749916 100644 (file)
@@ -1407,7 +1407,15 @@ sub get_options {
                if scalar(@$args) != 0;
        }
     } else {
                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}) {
     }
 
     if (my $pd = $schema->{properties}->{password}) {