fix processing when MN in database and has multiple groups defined

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14244 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2012-11-05 14:48:21 +00:00
parent 5f050f6a49
commit d608be3d11

View File

@ -3070,7 +3070,8 @@ sub noderangecontainsMn
my @nodelist=$tab->getAllNodeAttribs(['node','groups']);
foreach my $n (@nodelist) {
if (defined($n->{'groups'})) {
if ($n->{'groups'} eq "__mgmtnode") { # this is the MN
my @groups=split(",",$n->{'groups'});
if ((grep (/__mgmtnode/,@groups))) { # this is the MN
$mname=$n->{'node'};
last;
}