[Nagiosplug-checkins] nagiosplug NPTest.pm,1.5,1.6

Ton Voon tonvoon at users.sourceforge.net
Thu Dec 15 09:08:02 CET 2005


Update of /cvsroot/nagiosplug/nagiosplug
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23109

Modified Files:
	NPTest.pm 
Log Message:
Display errors with slave queries correctly. Added extra tests for slaves


Index: NPTest.pm
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/NPTest.pm,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- NPTest.pm	15 Dec 2005 15:19:55 -0000	1.5
+++ NPTest.pm	15 Dec 2005 17:06:54 -0000	1.6
@@ -46,6 +46,8 @@
 
 =item getTestParameter( "ENV_VARIABLE", $brief_description, $default )
 
+$default is optional.
+
 This function allows the test harness
 developer to interactively request test parameter information from the
 user. The user can accept the developer's default value or reply "none"
@@ -302,7 +304,7 @@
 {
   my( $param, $envvar, $default, $brief, $scoped );
   my $new_style;
-  if (scalar @_ == 3) {
+  if (scalar @_ <= 3) {
 	($param, $brief, $default) = @_;
 	$envvar = $param;
 	$new_style = 1;





More information about the Commits mailing list