regress: set default controller in failover
Set the controllers to the default values if no controllers are specified. (Previous code would only set the controller to the defaults if there was a problem parsing the command line options.)
This commit is contained in:
1 parent
2d71bf3848
commit
42a908d69f
1 file changed
+4
-4
@@ -26,10 +26,10 @@ my $controllers;
|
||||
|
||||
# Remove '--controller' from the option list... - Jean II
|
||||
Getopt::Long::Configure( 'pass_through' );
|
||||
unless (
|
||||
GetOptions(
|
||||
"controller=s" => \$controllers
|
||||
) )
|
||||
GetOptions(
|
||||
"controller=s" => \$controllers
|
||||
);
|
||||
if (!defined($controllers))
|
||||
{
|
||||
# If no controllers specified, use default
|
||||
$controllers = nftest_default_controllers();
|
||||
|
||||
Reference in new issue
Block a user