diff --git a/xCAT-server/lib/xcat/plugins/confluent.pm b/xCAT-server/lib/xcat/plugins/confluent.pm index 5fee08949..9275d9569 100644 --- a/xCAT-server/lib/xcat/plugins/confluent.pm +++ b/xCAT-server/lib/xcat/plugins/confluent.pm @@ -302,10 +302,15 @@ sub makeconfluentcfg { } } foreach my $nent (@cfgents4) { - foreach (keys %$nent) { - $cfgenthash{ $nent->{node} }->{$_} = $nent->{$_}; + foreach my $node (keys %$nent) { + foreach (@{$nent->{$node}}) { + foreach my $key (keys %$_) { + $cfgenthash{ $node }->{$key} = $_->{$key}; + } + } } } + my @cfgents = (); foreach (values %cfgenthash) { push @cfgents, $_;