use getNodeAttribs instead of getAttribs for ppc table

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11175 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jjhua 2011-12-08 07:49:55 +00:00
parent b4c358ba86
commit 6d51c00e63

View File

@ -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"};