change the way of getting node type
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9754 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
c28d4a87f1
commit
34e2b1ed42
@ -256,13 +256,14 @@ sub noderange_validate {
|
||||
###########################################
|
||||
foreach my $node ( @$noderange ) {
|
||||
my $type = undef;
|
||||
my $sitetab = xCAT::Table->new( 'nodetype' );
|
||||
if ( defined( $sitetab )) {
|
||||
my ($ent) = $sitetab->getAttribs({ node=>$node},'nodetype');
|
||||
if ( defined($ent) ) {
|
||||
$type = $ent->{nodetype};
|
||||
}
|
||||
}
|
||||
#my $sitetab = xCAT::Table->new( 'nodetype' );
|
||||
#if ( defined( $sitetab )) {
|
||||
# my ($ent) = $sitetab->getAttribs({ node=>$node},'nodetype');
|
||||
# if ( defined($ent) ) {
|
||||
# $type = $ent->{nodetype};
|
||||
# }
|
||||
#}
|
||||
$type = xCAT::DBobjUtils->getnodetype($node);
|
||||
#print "type:$type\n";
|
||||
if( $type =~/(fsp|lpar|cec)/) {
|
||||
$f1 = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user