2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-09-05 09:48:31 +00:00

Fix incorrect switch table handling

A different program flow is required to deal with the oddity of the
switch table
This commit is contained in:
Jarrod Johnson
2017-03-29 16:31:55 -04:00
parent 638d27fde8
commit ef136c7f91

View File

@@ -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, $_;