From 8d8c38d3b4550c832af8574ae75bde4ccf78b2f8 Mon Sep 17 00:00:00 2001 From: lissav Date: Tue, 19 Mar 2013 11:14:23 +0000 Subject: [PATCH] fix for defect 3434 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15573 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/ServiceNodeUtils.pm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/perl-xCAT/xCAT/ServiceNodeUtils.pm b/perl-xCAT/xCAT/ServiceNodeUtils.pm index 3d4e820fe..97cb15ba1 100644 --- a/perl-xCAT/xCAT/ServiceNodeUtils.pm +++ b/perl-xCAT/xCAT/ServiceNodeUtils.pm @@ -131,8 +131,12 @@ sub isServiceReq return; # do not setup anything } - # determine if this is being run for the Management Node - my $mname = xCAT::Utils->noderangecontainsMn($servicenodename); + # Are we on the MN + my $mname; + if (xCAT::Utils->isMN()) { + my @nodeinfo = xCAT::NetworkUtils->determinehostname; + $mname = pop @nodeinfo; # get hostname + } my $servicehash; # read all the nodes from the table, for each service