From 71ce143ab1cac10b974084a21653b71bee68fe55 Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Thu, 15 Dec 2005 17:06:55 +0000 Subject: Display errors with slave queries correctly. Added extra tests for slaves git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1299 f882894a-f735-0410-b71e-b25c423dba1c --- NPTest.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'NPTest.pm') diff --git a/NPTest.pm b/NPTest.pm index 4036a9d0..7ecf7439 100644 --- a/NPTest.pm +++ b/NPTest.pm @@ -46,6 +46,8 @@ default via the C statement. =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 @@ sub getTestParameter { my( $param, $envvar, $default, $brief, $scoped ); my $new_style; - if (scalar @_ == 3) { + if (scalar @_ <= 3) { ($param, $brief, $default) = @_; $envvar = $param; $new_style = 1; -- cgit v1.2.3