-Fix noderange to correctly enable cache for table for db worker and non-db worker modes

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3972 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2009-08-09 16:02:28 +00:00
parent 0bc53fc5a2
commit f8702e980d

View File

@ -338,9 +338,9 @@ sub noderange {
my $verify = (scalar(@_) == 1 ? shift : 1);
unless ($nodelist) {
$nodelist =xCAT::Table->new('nodelist',-create =>1);
$nodelist->{_use_cache} = 0; #TODO: a more proper external solution
$nodelist->_set_use_cache(0); #TODO: a more proper external solution
$nodelist->_build_cache(['node','groups']);
$nodelist->{_use_cache} = 1; #TODO: a more proper external solution
$nodelist->_set_use_cache(1); #TODO: a more proper external solution
}
my %nodes = ();
my %delnodes = ();