From 42bf1d30b700f4a4458e4593b03d056628ad4215 Mon Sep 17 00:00:00 2001 From: yinle Date: Fri, 10 Feb 2012 10:59:00 +0000 Subject: [PATCH] "getnodetype performance improvement": change getnodetype related code. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11553 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/PPCenergy.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/perl-xCAT/xCAT/PPCenergy.pm b/perl-xCAT/xCAT/PPCenergy.pm index 77b56d97a..b3b8433e6 100644 --- a/perl-xCAT/xCAT/PPCenergy.pm +++ b/perl-xCAT/xCAT/PPCenergy.pm @@ -176,7 +176,7 @@ sub parse_args { #} #my $nodetype_v = $nodetype_tb->getNodesAttribs($nodes, ['nodetype']); - my $nodetyperef = xCAT::DBobjUtils->getnodetype($nodes); + my $nodetyperef = xCAT::DBobjUtils->getnodetype($nodes, "ppc"); my $i = 0; foreach my $node (@{$nodes}) { if (@$nodetyperef[$i] ne 'fsp' && @@ -234,7 +234,7 @@ sub renergy { } # get the user and passwd for hcp: hmc, fsp, cec - my $hcp_type = xCAT::DBobjUtils->getnodetype($hcphost); + my $hcp_type = xCAT::DBobjUtils->getnodetype($hcphost, "ppc"); my $user; my $password; if ($hcp_type eq "hmc") {