Fix problem where nodels could return more data than requested
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@12925 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
3eb9eb7db4
commit
31af2c1abe
@ -2059,6 +2059,7 @@ sub getNodesAttribs {
|
||||
} else {
|
||||
@attribs = @_;
|
||||
}
|
||||
my @realattribs = @attribs; #store off the requester attribute list, the cached columns may end up being a superset and we shouldn't return more than asked
|
||||
#it should also be the case that cache will be used if it already is in play even if below cache threshold. This would be desired behavior
|
||||
if (scalar(@$nodelist) > $cachethreshold) {
|
||||
$self->{_use_cache} = 0;
|
||||
@ -2081,7 +2082,7 @@ sub getNodesAttribs {
|
||||
}
|
||||
my $rethash;
|
||||
foreach (@$nodelist) {
|
||||
my @nodeentries=$self->getNodeAttribs($_,\@attribs,%options);
|
||||
my @nodeentries=$self->getNodeAttribs($_,\@realattribs,%options);
|
||||
$rethash->{$_} = \@nodeentries; #$self->getNodeAttribs($_,\@attribs);
|
||||
}
|
||||
$self->_clear_cache;
|
||||
|
Loading…
Reference in New Issue
Block a user