The nodetype attr is now in the nodetype table not

the nodelist table.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@829 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
nott 2008-03-19 14:18:39 +00:00
parent 2cd2305107
commit 57d7118fcf

View File

@ -238,7 +238,7 @@ sub preprocess_nodes {
##########################################
# Open databases needed
##########################################
foreach ( qw(ppc vpd nodelist) ) {
foreach ( qw(ppc vpd nodetype) ) {
$tabs{$_} = xCAT::Table->new($_);
if ( !exists( $tabs{$_} )) {
@ -331,15 +331,15 @@ sub resolve {
#################################
# 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"