Avoid calling clear_cache two times on nodelist table objects when build_cache is only called once

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9743 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2011-06-06 16:58:59 +00:00
parent ca420493fc
commit 21490e591b

View File

@ -2061,8 +2061,10 @@ sub getNodesAttribs {
}
$self->_clear_cache;
$self->{_use_cache} = 0;
$self->{nodelist}->_clear_cache;
$self->{nodelist}->{_use_cache} = 0;
if ($self->{tabname} ne 'nodelist') { #avoid calling clear_cache on nodelist twice
$self->{nodelist}->_clear_cache;
$self->{nodelist}->{_use_cache} = 0;
}
return $rethash;
}