From b4c358ba8685d46b6ca9356acdbbc642fd3d0137 Mon Sep 17 00:00:00 2001 From: jjhua Date: Thu, 8 Dec 2011 07:17:50 +0000 Subject: [PATCH] use getNodeAttribs instead of getAttribs for ppc/nodepos tables git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11173 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/FIP.pm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/FIP.pm b/xCAT-server/lib/xcat/plugins/FIP.pm index 4bf3caba5..74994c665 100644 --- a/xCAT-server/lib/xcat/plugins/FIP.pm +++ b/xCAT-server/lib/xcat/plugins/FIP.pm @@ -89,8 +89,8 @@ sub preprocess_request { } - my ($current_ppc_ent) = $ppctab->getAttribs({ node=>$current_node},@ppcattribs); - my ($fip_ppc_ent) = $ppctab->getAttribs({ node=>$fip_node},@ppcattribs); + my ($current_ppc_ent) = $ppctab->getNodeAttribs($current_node,@ppcattribs); + my ($fip_ppc_ent) = $ppctab->getNodeAttribs($fip_node,@ppcattribs); my @current_attrs; my @fip_attrs; if( $current_ppc_ent->{'parent'} ne $fip_ppc_ent->{'parent'} ) { @@ -321,8 +321,8 @@ sub swapnodes return 1; } - my ($current_ppc_ent) = $ppctab->getAttribs({ node=>$current_node},@ppcattribs); - my ($fip_ppc_ent) = $ppctab->getAttribs({ node=>$fip_node},@ppcattribs); + my ($current_ppc_ent) = $ppctab->getNodeAttribs( $current_node,@ppcattribs); + my ($fip_ppc_ent) = $ppctab->getNodeAttribs( $fip_node,@ppcattribs); my @current_attrs; my @fip_attrs; my $cec; @@ -407,8 +407,8 @@ sub swapnodes return 1; } - my $current_ent = $nodepostab->getAttribs({ node=>$current_node},@nodeposattribs); - my $fip_ent = $nodepostab->getAttribs({ node=>$fip_node},@nodeposattribs); + my $current_ent = $nodepostab->getNodeAttribs( $current_node,@nodeposattribs); + my $fip_ent = $nodepostab->getNodeAttribs( $fip_node,@nodeposattribs); # swap the current ent and the fip ent $keyhash{'node'} = $current_node;