[pve-devel] r5167 - pve-common/trunk

svn-commits at proxmox.com svn-commits at proxmox.com
Fri Sep 17 08:50:21 CEST 2010


Author: dietmar
Date: 2010-09-17 06:50:20 +0000 (Fri, 17 Sep 2010)
New Revision: 5167

Modified:
   pve-common/trunk/RESTHandler.pm
Log:
skip non-existing options


Modified: pve-common/trunk/RESTHandler.pm
===================================================================
--- pve-common/trunk/RESTHandler.pm	2010-09-16 13:21:10 UTC (rev 5166)
+++ pve-common/trunk/RESTHandler.pm	2010-09-17 06:50:20 UTC (rev 5167)
@@ -242,6 +242,8 @@
 
     my $args = '';
     foreach my $p (@$arg_param) {
+	next if !$prop->{$p}; # just to be sure
+
 	$arg_hash->{$p} = 1;
 	$args .= " " if $args;
 	$args .= $prop->{$p} && $prop->{$p}->{optional} ? "[<$p>]" : "<$p>";
@@ -306,7 +308,7 @@
     my $argdescr = '';
     foreach my $k (@$arg_param) {
 	next if defined($fixed_param->{$k}); # just to be sure
-
+	next if !$prop->{$k}; # just to be sure
 	$argdescr .= &$get_prop_descr($k, "<$k>");
     }
 




More information about the pve-devel mailing list