From a4119f52a26a45c993c8ad4b2deb3b998581327c Mon Sep 17 00:00:00 2001 From: lissav Date: Tue, 28 Aug 2012 19:40:28 +0000 Subject: [PATCH] fix getNodesAttribs multiple entry problem git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@13632 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/tabutils.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/tabutils.pm b/xCAT-server/lib/xcat/plugins/tabutils.pm index d49144481..97b5cbd5c 100644 --- a/xCAT-server/lib/xcat/plugins/tabutils.pm +++ b/xCAT-server/lib/xcat/plugins/tabutils.pm @@ -2356,10 +2356,10 @@ sub getNodesAttribs } my $rechash = $tab->getNodesAttribs(\@nodes,\@attrs); foreach my $node (@nodes){ - my %datseg=(); - $datseg{name} = [$node]; my $recs = $rechash->{$node}; foreach my $rec (@$recs) { + my %datseg=(); + $datseg{name} = [$node]; foreach my $key (keys %$rec) { $datseg{$key} = [$rec->{$key}]; }