diff --git a/xCAT-server-2.0/share/xcat/cons/hmc b/xCAT-server-2.0/share/xcat/cons/hmc index 642487cc8..8b18abf2d 100644 --- a/xCAT-server-2.0/share/xcat/cons/hmc +++ b/xCAT-server-2.0/share/xcat/cons/hmc @@ -139,7 +139,7 @@ sub invoke_cmd { ################################## # Open databases needed ################################## - foreach ( qw(ppc vpd nodelist) ) { + foreach ( qw(ppc vpd nodetype) ) { $tabs{$_} = xCAT::Table->new($_); if ( !exists( $tabs{$_} )) { @@ -155,15 +155,15 @@ sub invoke_cmd { ################################# # Get node type ################################# - my ($ent) = $tabs{nodelist}->getAttribs({'node'=>$node}, "nodetype" ); + my ($ent) = $tabs{nodetype}->getAttribs({'node'=>$node}, "nodetype" ); if ( !defined( $ent )) { - return( sprintf( $errmsg{NODE_UNDEF}, "nodelist" )); + return( sprintf( $errmsg{NODE_UNDEF}, "nodetype" )); } ################################# # Check for type ################################# if ( !exists( $ent->{nodetype} )) { - return( sprintf( $errmsg{NO_ATTR}, $ent->{nodetype},"nodelist" )); + return( sprintf( $errmsg{NO_ATTR}, $ent->{nodetype},"nodetype" )); } ################################# # Check for valid "type"