adding check for -n to 2.8.3

This commit is contained in:
jwsimpson 2013-06-04 12:29:22 +00:00 committed by John Simpson
parent a4ec5d2e92
commit e3c48f5dbd

View File

@ -868,6 +868,14 @@ sub check_options
return 1;
}
# check to see if -n is listed with any other options which is not allowed
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);
return 1;
}
unless (($req->{arg} and (@{$req->{arg}}>0)) or $req->{node})
{
my $rsp = {};