add check if nodetype defined
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13477 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
7d6b66d06a
commit
41b34ff9cb
@ -2918,10 +2918,12 @@ sub noderangecontainsMn
|
||||
my $tab = xCAT::Table->new('nodetype');
|
||||
my @nodelist=$tab->getAllNodeAttribs(['node','nodetype']);
|
||||
foreach my $n (@nodelist) {
|
||||
if (defined($n->{'nodetype'})) {
|
||||
if ($n->{'nodetype'} eq "mn") { # this is the MN
|
||||
$mname=$n->{'node'};
|
||||
last;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (grep(/$mname/, @noderange)) { # if MN in the noderange
|
||||
return $mname;
|
||||
|
Loading…
Reference in New Issue
Block a user