fix for defect 3434

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15573 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2013-03-19 11:14:23 +00:00
parent c9778bf3f7
commit 8d8c38d3b4

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