From: <jj...@us...> - 2011-12-08 09:00:28
|
Revision: 11183 http://xcat.svn.sourceforge.net/xcat/?rev=11183&view=rev Author: jjhua Date: 2011-12-08 09:00:21 +0000 (Thu, 08 Dec 2011) Log Message: ----------- use getNodeAttribs instead of getAttribs Modified Paths: -------------- xcat-core/branches/2.6/perl-xCAT/xCAT/PPCdb.pm Modified: xcat-core/branches/2.6/perl-xCAT/xCAT/PPCdb.pm =================================================================== --- xcat-core/branches/2.6/perl-xCAT/xCAT/PPCdb.pm 2011-12-08 08:31:33 UTC (rev 11182) +++ xcat-core/branches/2.6/perl-xCAT/xCAT/PPCdb.pm 2011-12-08 09:00:21 UTC (rev 11183) @@ -619,7 +619,7 @@ ################################### # Update ppchcp table ################################### - my ($ent) = $db{ppchcp}->getAttribs({ hcp=>$name},'hcp'); + my ($ent) = $db{ppchcp}->getNodeAttribs( $name,'hcp'); if ( !defined($ent) ) { $db{ppchcp}->setAttribs( {hcp=>$name}, { username=>"", @@ -704,7 +704,7 @@ ################################### # Update mpa table ################################### - my ($ent) = $db{mpa}->getAttribs({ mpa=>$name},'mpa'); + my ($ent) = $db{mpa}->getNodeAttribs( $name,'mpa'); if ( !defined($ent) ) { $db{mpa}->setAttribs( {mpa=>$name}, { username=>"", @@ -797,7 +797,7 @@ } else { - ($ent) = $tab->getAttribs( {hcp=>$server}, qw(username password)); + ($ent) = $tab->getNodeAttribs( $server, qw(username password)); } if ( $ent){ if (defined($ent->{password})) { $pass = $ent->{password}; } @@ -806,7 +806,7 @@ ############################################################## # If no user/passwd found, check if there is a default group ############################################################## - elsif( ($ent) = $tab->getAttribs( {hcp=>$defaultgrp{$hwtype}}, qw(username password))) + elsif( ($ent) = $tab->getNodeAttribs( $defaultgrp{$hwtype}, qw(username password))) { if ( $user_specified) { @@ -814,7 +814,7 @@ } else { - ($ent) = $tab->getAttribs( {hcp=>$defaultgrp{$hwtype}}, qw(username password)); + ($ent) = $tab->getNodeAttribs( $defaultgrp{$hwtype}, qw(username password)); } if ( $ent){ if (defined($ent->{password})) { $pass = $ent->{password}; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |