From c6eec9badd0425efa545abf0e7b1af4525c5ddca Mon Sep 17 00:00:00 2001 From: lissav Date: Thu, 3 Jan 2013 14:42:56 +0000 Subject: [PATCH] fix defect 3267 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14738 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/xdsh.pm | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/xdsh.pm b/xCAT-server/lib/xcat/plugins/xdsh.pm index 40894545b..830fe961b 100644 --- a/xCAT-server/lib/xcat/plugins/xdsh.pm +++ b/xCAT-server/lib/xcat/plugins/xdsh.pm @@ -224,7 +224,19 @@ sub preprocess_request { # if it is a good SN, one ready to service the nodes - if (grep(/$snkey/, @::good_SN)) + # split if a pool + # if one in the pool is good, send the command to the + # daemon + my @sn_list = split ',', $snkey; + my $goodsn=0; + foreach my $sn (@sn_list) { + if (grep(/$sn/, @::good_SN)) { + $goodsn=1; + last; + } + } + # found a good service node + if ($goodsn == 1) { my $noderequests = &process_nodes($req, $sn, $snkey,$synfiledir);