mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-25 00:15:43 +00:00 
			
		
		
		
	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:
		| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user