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
This commit is contained in:
parent
9a014e31c3
commit
a4119f52a2
@ -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}];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user