From 79079511d6fe0dddc8f37528e20e2cab11c280c0 Mon Sep 17 00:00:00 2001 From: jjhua Date: Fri, 14 Oct 2011 05:43:26 +0000 Subject: [PATCH] in DFM hierarchical cluster, mkhwconn/lshwconn/rmhwconn with -T fnm will send the command to CEC/Frame direclty, not through the service node if specified. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10777 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/Utils.pm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/perl-xCAT/xCAT/Utils.pm b/perl-xCAT/xCAT/Utils.pm index c68885b7c..a32a2af5b 100644 --- a/perl-xCAT/xCAT/Utils.pm +++ b/perl-xCAT/xCAT/Utils.pm @@ -3618,7 +3618,7 @@ sub get_site_Master sub get_ServiceNode { require xCAT::Table; - my ($class, $node, $service, $request) = @_; + my ($class, $node, $service, $request, $onlymaster) = @_; my @node_list = @$node; my $cmd; my %snhash; @@ -3636,7 +3636,13 @@ sub get_ServiceNode if ($request eq "MN") { - $snattribute = "servicenode"; + if( $onlymaster == 1) { + $snattribute = "xcatmaster"; + } else { + $snattribute = "servicenode"; + } + + } else # Node {