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:
parent
ddced88dba
commit
d9e88fa588
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user