diff --git a/xCAT-server/lib/xcat/plugins/conserver.pm b/xCAT-server/lib/xcat/plugins/conserver.pm index 3b0a0d8b8..9e41a96a6 100644 --- a/xCAT-server/lib/xcat/plugins/conserver.pm +++ b/xCAT-server/lib/xcat/plugins/conserver.pm @@ -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) {