From 5381851d961e01a6a840dd38566dd8affebd5cbb Mon Sep 17 00:00:00 2001 From: jjhua Date: Thu, 18 Aug 2011 02:48:34 +0000 Subject: [PATCH] fixed 3393278, if noderange is not empty and missed not is empty, at the meantime, the @nodes is also empty, we can make sure that no node/noderange specified in the command line git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10315 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/sbin/xcatd | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/xCAT-server/sbin/xcatd b/xCAT-server/sbin/xcatd index d736e4051..3e0dde3bc 100755 --- a/xCAT-server/sbin/xcatd +++ b/xCAT-server/sbin/xcatd @@ -858,6 +858,17 @@ sub plugin_command { unless (@nodes) { $req->{emptynoderange} = [1]; } + + if(@nodes == 0) { + my $rsp = {errorcode=>1,error=>"NO node or noderange specified"}; + $rsp->{serverdone} = {}; + if ($sock) { + print $sock XMLout($rsp,RootName=>'xcatresponse' ,NoAttr=>1); + } + return ($rsp); + + } + } if (@nodes) { $req->{node} = \@nodes; } my %unhandled_nodes;