makedns -d must be followed by noderange.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9971 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
sjing 2011-06-28 09:07:53 +00:00
parent ddced88dba
commit d9e88fa588

View File

@ -215,6 +215,12 @@ sub process_request {
makedns_usage($callback);
return;
}
if ($deletemode && (!$request->{node}->[0]))
{
makedns_usage($callback);
return;
}
$ctx->{deletemode}=$deletemode;
@ -971,7 +977,7 @@ sub makedns_usage
push @{$rsp->{data}}, " Usage: ";
push @{$rsp->{data}}, "\tmakedns [-h|--help ]";
push @{$rsp->{data}}, "\tmakedns [-n|--new ] [noderange]";
push @{$rsp->{data}}, "\tmakedns [-d|--delete ] [noderange]";
push @{$rsp->{data}}, "\tmakedns [-d|--delete noderange]";
push @{$rsp->{data}}, "\n";
xCAT::MsgUtils->message("I", $rsp, $callback);
return 0;