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}]; }