From 988e00d1d6ca05b5cc106b2a7c762aeee4b1b509 Mon Sep 17 00:00:00 2001 From: jjhua Date: Thu, 8 Dec 2011 07:49:19 +0000 Subject: [PATCH] use getNodeAttribs instead of getAttribs for ppc table git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.6@11174 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/PPCvm.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/perl-xCAT/xCAT/PPCvm.pm b/perl-xCAT/xCAT/PPCvm.pm index ae3e0f225..980eab006 100644 --- a/perl-xCAT/xCAT/PPCvm.pm +++ b/perl-xCAT/xCAT/PPCvm.pm @@ -267,7 +267,7 @@ sub mkvm_parse_args { my $lparparent; my $ppctab = xCAT::Table->new('ppc'); foreach my $vnode (@{$opt{target}}) { - my $vcon = $ppctab->getAttribs({node => $vnode}, ('node','parent')); + my $vcon = $ppctab->getNodeAttribs( $vnode, ('node','parent')); if ($vcon and $vcon->{"node"} and $vcon->{"parent"}) { my $lparent = $vcon->{"parent"}; $lparparent->{$lparent}->{$vnode} = $vnode; @@ -1966,7 +1966,7 @@ sub mkfulllpar { # Create the new full LPAR's configure data ################################# my ($lpar_id, $profname); - my $vcon = $ppctab->getAttribs({node => $name}, ('id','pprofile')); + my $vcon = $ppctab->getAttribs($name, ('id','pprofile')); if ($vcon) { if ($vcon->{"id"}) { $lpar_id = $vcon->{"id"};