mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-09-05 17:58:14 +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:
@@ -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, $_;
|
||||
|
Reference in New Issue
Block a user