"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
This commit is contained in:
yinle 2012-02-10 10:59:00 +00:00
parent 0eb0975d01
commit 42bf1d30b7

View File

@ -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") {