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