From 0eb0975d01c38cf15d76b304a99312e798e4748f Mon Sep 17 00:00:00 2001 From: yinle Date: Fri, 10 Feb 2012 10:56:39 +0000 Subject: [PATCH] "getnodetype performance improvement": change getnodetype related code. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11552 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/PPCdb.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/perl-xCAT/xCAT/PPCdb.pm b/perl-xCAT/xCAT/PPCdb.pm index 0696e2030..37bcf6139 100644 --- a/perl-xCAT/xCAT/PPCdb.pm +++ b/perl-xCAT/xCAT/PPCdb.pm @@ -752,13 +752,13 @@ sub credentials { ########################################### # find parent for fsp/bpa, use parent's attributes first ########################################### - my $ntype = xCAT::DBobjUtils->getnodetype($server); + my $ntype = xCAT::DBobjUtils->getnodetype($server, "ppc"); if ($ntype =~ /^(fsp|bpa)$/) { my $ptab = xCAT::Table->new('ppc'); if ($ptab) { my $parent = $ptab->getNodeAttribs($server, ["parent"]); if ($parent and $parent->{parent}) { - my $ptype = xCAT::DBobjUtils->getnodetype($parent->{parent}); + my $ptype = xCAT::DBobjUtils->getnodetype($parent->{parent}, "ppc"); if (($ptype =~ /^cec$/ and $ntype =~ /^fsp$/) or ($ptype =~ /^frame$/ and $ntype =~ /^bpa$/)) { $server = $parent->{parent};