From d9e88fa588a100f7ea35f957ed57ce3940863473 Mon Sep 17 00:00:00 2001 From: sjing Date: Tue, 28 Jun 2011 09:07:53 +0000 Subject: [PATCH] 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 --- xCAT-server/lib/xcat/plugins/ddns.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/ddns.pm b/xCAT-server/lib/xcat/plugins/ddns.pm index 6b22198f6..52fe03289 100644 --- a/xCAT-server/lib/xcat/plugins/ddns.pm +++ b/xCAT-server/lib/xcat/plugins/ddns.pm @@ -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;