fixed syntax problem with checking on option -n

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16532 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jwsimpson 2013-06-04 12:29:22 +00:00
parent d5f7c77bc1
commit 9a7b3b91df

View File

@ -895,7 +895,7 @@ sub check_options
}
# check to see if -n is listed with any other options which is not allowed
if ($::opt_n and ($::opt_a || $::opt_d || $::opt_n || $::opt_r || $::opt_l || $statements)) {
if ($::opt_n and ($::opt_a || $::opt_d || $::opt_q || $::opt_r || $::opt_l || $statements)) {
my $rsp = {};
$rsp->{data}->[0] = "The -n option cannot be used with other options.";
xCAT::MsgUtils->message("E", $rsp, $callback, 1);
@ -997,8 +997,8 @@ sub preprocess_request
push @{$rsp->{data}}, "AIX nodes with a nodetype of \'osi\' will not be added to the dhcp configuration file. This is handled by NIM.\n";
xCAT::MsgUtils->message("I", $rsp, $callback);
}
} # OS is AIX processing
} # !$::opt_n processing
}
}
# If service node and not -n option
if (($snonly == 1) && (!$::opt_n)) {