fix for defect 3434

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15574 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2013-03-19 11:15:43 +00:00
parent 20c386bac4
commit 6c304ce11c

View File

@ -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