]> git.proxmox.com Git - pve-client.git/blobdiff - PVE/JSONSchema.pm
Add spice command
[pve-client.git] / PVE / JSONSchema.pm
index edd1caf92a073e055f2e80d6d19f67ca1a71f394..f014dc3f15b5c73dbadb05f865d435f70e749916 100644 (file)
@@ -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}) {