From 7cbf4c0971c27effe08e60793618159ea4ecb482 Mon Sep 17 00:00:00 2001 From: jjhua Date: Thu, 8 Dec 2011 08:08:18 +0000 Subject: [PATCH] use getNodeAttribs instead of getAttribs git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11177 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/perl/xCAT/PPC.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xCAT-server/lib/perl/xCAT/PPC.pm b/xCAT-server/lib/perl/xCAT/PPC.pm index c904e40d3..cea37430d 100644 --- a/xCAT-server/lib/perl/xCAT/PPC.pm +++ b/xCAT-server/lib/perl/xCAT/PPC.pm @@ -1343,7 +1343,7 @@ sub handle_find_hw_children { if (!defined($vpdtab) or !defined($child_type)) { return undef; } - my $mtms = $vpdtab->getAttribs({node=>$host}, qw(serial mtm)); + my $mtms = $vpdtab->getNodeAttribs($host, qw(serial mtm)); if (!defined($mtms)) { return undef; } @@ -1826,7 +1826,7 @@ sub preprocess_request { my %hcp_hash=(); my @missednodes=(); foreach ( @$noderange ) { - my ($ent) = $hcptab->getAttribs( {hcp=>$_},"hcp" ); + my ($ent) = $hcptab->getNodeAttribs( $_,"hcp" ); if ( !defined( $ent )) { push @missednodes, $_; next; @@ -1843,7 +1843,7 @@ sub preprocess_request { return; } foreach my $node (@missednodes) { - my ($ent) = $ppctab->getAttribs({hcp=>$node}, "hcp"); + my ($ent) = $ppctab->getNodeAttribs( $node, "hcp"); if (defined($ent)) { push @{$hcp_hash{$node}{nodes}}, $node; next;