check if MN defined

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14158 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2012-10-30 11:10:12 +00:00
parent d8b9521d56
commit 40a74f4310

View File

@ -2992,10 +2992,12 @@ sub noderangecontainsMn
}
}
}
if (grep(/$mname/, @noderange)) { # if MN in the noderange
return $mname;
} else {
return ;
if ($mname) { # if Management Node defined in the database
if (grep(/$mname/, @noderange)) { # if MN in the noderange
return $mname;
} else {
return ;
}
}
}