mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-09-05 17:58:14 +00:00
Fix makeconfluentcfg without arguments
There were mistakes in the switch table processing attempt for non noderange makeconfluentcfg.
This commit is contained in:
@@ -276,7 +276,12 @@ sub makeconfluentcfg {
|
||||
@cfgents1 = $hmtab->getAllNodeAttribs([ 'cons', 'serialport', 'mgt', 'conserver', 'termserver', 'termport', 'consoleondemand' ]);
|
||||
@cfgents2 = $nodepostab->getAllNodeAttribs([ 'rack', 'u', 'chassis', 'slot', 'room' ]);
|
||||
@cfgents3 = $nodepostab->getAllNodeAttribs([ 'mpa', 'id' ]);
|
||||
@cfgents4 = $nodepostab->getAllNodeAttribs([ 'node', 'switch', 'port', 'interface' ]);
|
||||
@cfgents4 = $switchtab->getAllNodeAttribs([ 'node', 'switch', 'port', 'interface' ]);
|
||||
my @switchnodes;
|
||||
foreach my $ent (@cfgents4) {
|
||||
if ($ent->{node}) { push @switchnodes, $ent->{node} }
|
||||
}
|
||||
@cfgents4 = $switchtab->getNodesAttribs(\@switchnodes, [ 'node', 'switch', 'port', 'interface' ]);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user