From 40dac5e5509855bf9d01978b10df9bb30cbea293 Mon Sep 17 00:00:00 2001 From: yinle Date: Thu, 30 Dec 2010 10:23:21 +0000 Subject: [PATCH] FSP/BPA redundancy: modify the way of finding node's type git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8531 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/perl/xCAT/PPC.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/perl/xCAT/PPC.pm b/xCAT-server/lib/perl/xCAT/PPC.pm index 5ce27a91e..2543bc4df 100644 --- a/xCAT-server/lib/perl/xCAT/PPC.pm +++ b/xCAT-server/lib/perl/xCAT/PPC.pm @@ -1774,7 +1774,8 @@ sub process_request { }#end of if #print "thishcp:$thishcp\n"; #get the nodetype of hcp: - my $thishcp_type = xCAT::FSPUtils->getTypeOfNode($thishcp,$callback); + #my $thishcp_type = xCAT::FSPUtils->getTypeOfNode($thishcp,$callback); + my $thishcp_type = xCAT::DBobjUtils->getnodetype($thishcp); if(!defined($thishcp_type)) { $request = {}; next; @@ -2012,7 +2013,8 @@ sub getHCPsOfNodes my %hcps = (); #get hcp from ppc. foreach my $node( @$nodes) { - my $thishcp_type = xCAT::FSPUtils->getTypeOfNode($node, $callback); + #my $thishcp_type = xCAT::FSPUtils->getTypeOfNode($node, $callback); + my $thishcp_type = xCAT::DBobjUtils->getnodetype($node); if( $thishcp_type eq "hmc") { $hcps{$node}{hcp} = [$node]; $hcps{$node}{num} = 1;