Fix [2017647] rpower report "Node not defined in 'nodetype' database"
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1930 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
4e64c58312
commit
6c68e04dc5
@ -497,15 +497,15 @@ sub resolve {
|
||||
#################################
|
||||
# Get node type
|
||||
#################################
|
||||
my ($ent) = $tabs->{nodetype}->getAttribs({'node'=>$node}, "nodetype" );
|
||||
my $ent = $tabs->{nodetype}->getNodeAttribs($node,[qw(nodetype node)]);
|
||||
if ( !defined( $ent )) {
|
||||
return( sprintf( $errmsg{NODE_UNDEF}, "nodetype" ));
|
||||
return( sprintf( $errmsg{NODE_UNDEF}, "nodetype" ));
|
||||
}
|
||||
#################################
|
||||
# Check for type
|
||||
#################################
|
||||
if ( !exists( $ent->{nodetype} )) {
|
||||
return( sprintf( $errmsg{NO_ATTR}, $ent->{nodetype}, "nodetype" ));
|
||||
return( sprintf( $errmsg{NO_ATTR}, "nodetype","nodetype" ));
|
||||
}
|
||||
#################################
|
||||
# Check for valid "type"
|
||||
|
Loading…
Reference in New Issue
Block a user