From 4bd389077b33ffbc999e65e6d94786dd380f8b18 Mon Sep 17 00:00:00 2001 From: nott Date: Wed, 19 Mar 2008 14:41:00 +0000 Subject: [PATCH] Moved the nodetype attr from the nodelist table to the nodetype table. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@832 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server-2.0/share/xcat/cons/hmc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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"