From 21b94925c969065b25638f6b05abc844e61cf225 Mon Sep 17 00:00:00 2001 From: lissav Date: Fri, 5 Aug 2011 11:34:53 +0000 Subject: [PATCH] Add check in preprocessing if running on the service node do not do hierarchical processing defect 3386101 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10235 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/xdsh.pm | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/xdsh.pm b/xCAT-server/lib/xcat/plugins/xdsh.pm index 806413d35..fe741045e 100644 --- a/xCAT-server/lib/xcat/plugins/xdsh.pm +++ b/xCAT-server/lib/xcat/plugins/xdsh.pm @@ -1,4 +1,4 @@ -# IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html + #------------------------------------------------------- =head1 @@ -121,9 +121,11 @@ sub preprocess_request my @snoderange; # check to see if service nodes and not just the MN - # if just MN, then no hierarchy to deal with - if ($sn) - { + # if just MN or I am on a Service Node, then no hierarchy to deal with + + if (! (xCAT::Utils->isServiceNode())) { # not on a servicenode + if ($sn) + { foreach my $snkey (keys %$sn) { if (!grep(/$snkey/, @MNnodeipaddr)) @@ -134,6 +136,7 @@ sub preprocess_request } } + } } # if servicenodes and (if xdcp and not pull function or xdsh -e)