From 48367b9fb681d60aacfce57e207b85efe7e380c9 Mon Sep 17 00:00:00 2001 From: lissav Date: Tue, 28 Aug 2012 19:37:01 +0000 Subject: [PATCH] fix getNodesAttribs multiple entry problem git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13631 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 494771850..a76017184 100644 --- a/xCAT-server/lib/xcat/plugins/tabutils.pm +++ b/xCAT-server/lib/xcat/plugins/tabutils.pm @@ -2359,10 +2359,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}]; }