fix bug 3364752 : makedhcp error with 7/11 build

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10069 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
yinle 2011-07-13 02:48:35 +00:00
parent cbe3d33c45
commit d3538e0de7

View File

@ -692,7 +692,7 @@ sub preprocess_request
#my $ntype = xCAT::DBobjUtils->getnodetype($n);
my $ntable = xCAT::Table->new('nodetype');
if ($ntable) {
my $mytype = $ntable->getNodesAttribs($n,['nodetype']);
my $mytype = $ntable->getNodeAttribs($n,['nodetype']);
if ($mytype =~ /osi/) {
$Imsg++;
}
@ -1146,7 +1146,7 @@ sub process_request
#my $ntype = xCAT::DBobjUtils->getnodetype($n);
my $ntable = xCAT::Table->new('nodetype');
if ($ntable) {
my $ntype = $ntable->getNodesAttribs($n,['nodetype']);
my $ntype = $ntable->getNodeAttribs($n,['nodetype']);
# don't add if it is type "osi"
unless ($ntype =~ /osi/) {