mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-09-04 20:17:55 +00:00
fix(confluent): read the enclosure of a node from the mp table
makeconfluentcfg exports enclosure.manager and enclosure.bay from the mpa and id columns. Those columns belong to the mp table. When the command runs with a node range it reads them from the mp table, but when it runs with no argument it reads them from the nodepos table, which has only node, rack, u, chassis, slot, room and height. The two attributes were therefore always empty for a whole cluster export. Read them from the mp table in both branches.
This commit is contained in:
@@ -299,7 +299,7 @@ sub makeconfluentcfg {
|
||||
} else {
|
||||
@cfgents1 = $hmtab->getAllNodeAttribs([ 'cons', 'serialport', 'mgt', 'conserver', 'termserver', 'termport', 'consoleondemand' ]);
|
||||
@cfgents2 = $nodepostab->getAllNodeAttribs([ 'rack', 'u', 'chassis', 'slot', 'room' ]);
|
||||
@cfgents3 = $nodepostab->getAllNodeAttribs([ 'mpa', 'id' ]);
|
||||
@cfgents3 = $mptab->getAllNodeAttribs([ 'mpa', 'id' ]);
|
||||
@cfgents4 = $switchtab->getAllNodeAttribs([ 'node', 'switch', 'port', 'interface' ]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user