use getNodeAttribs instead of getAttribs in script hmc for conserver

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3118 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
linggao 2009-04-07 19:04:23 +00:00
parent ecba360b68
commit 66569a2d6c

View File

@ -147,7 +147,7 @@ sub invoke_cmd {
#################################
# Get node type
#################################
my ($ent) = $tabs{nodetype}->getAttribs({'node'=>$node}, "nodetype" );
my ($ent) = $tabs{nodetype}->getNodeAttribs($node, ["nodetype"] );
if ( !defined( $ent )) {
return( sprintf( $errmsg{NODE_UNDEF}, "nodetype" ));
}
@ -186,7 +186,7 @@ sub invoke_cmd {
# Find MTMS in vpd database
#################################
my @attrs = qw(mtm serial);
my ($vpd) = $tabs{vpd}->getAttribs({node=>$att->{parent}}, @attrs );
my ($vpd) = $tabs{vpd}->getNodeAttribs($att->{parent}, \@attrs );
if ( !defined( $vpd )) {
return( sprintf( $errmsg{NODE_UNDEF}, "vpd" ));