From eaec3c372b079e48d9172daeb0d939efb7b12ae1 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Thu, 24 May 2012 17:14:38 +0000 Subject: [PATCH] Fix problem where nodels could return more data than requested git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12924 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/Table.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/perl-xCAT/xCAT/Table.pm b/perl-xCAT/xCAT/Table.pm index a428730e8..c9f81633e 100644 --- a/perl-xCAT/xCAT/Table.pm +++ b/perl-xCAT/xCAT/Table.pm @@ -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->{_use_cache} = 0;