From 31af2c1abe7e75a402189ef49a3bab9e4b9cda65 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Thu, 24 May 2012 17:14:52 +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/branches/2.7@12925 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 ded945371..f4e4e5f9c 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->_clear_cache;