change the way of find node type
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9732 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -6,6 +6,7 @@ use xCAT::Table; | ||||
| use xCAT::Utils; | ||||
| use Getopt::Long; | ||||
| use Sys::Hostname; | ||||
| use xCAT::DBobjUtils; | ||||
|  | ||||
| use strict; | ||||
| use Data::Dumper; | ||||
| @@ -359,8 +360,9 @@ sub makeconservercf { | ||||
|  | ||||
|     if ( defined($typetab)) { | ||||
|       my @ents = $typetab->getAllNodeAttribs([qw(node nodetype)]); | ||||
|       foreach (@ents) { | ||||
|         $type{$_->{node}}=$_->{nodetype}; | ||||
|       foreach my $tn (@ents) { | ||||
|         #$type{$_->{node}}=$_->{nodetype}; | ||||
|         $type{$tn->{node}}= xCAT::DBobjUtils->getnodetype($tn->{node}); | ||||
|       } | ||||
|     } | ||||
|     foreach (@cfgents) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user