contruct network from nodeInfo not NodeConf

Signed-off-by: Christian Goll <cgoll@suse.com>
This commit is contained in:
Christian Goll
2024-02-21 10:35:53 +01:00
parent b3638ac1ff
commit b387c86e6e
2 changed files with 2 additions and 1 deletions

View File

@@ -205,7 +205,7 @@ func (config *NodeYaml) FindAllNodes() ([]NodeInfo, error) {
// set default/primary network is just one network exist
if len(n.NetDevs) >= 1 && !n.PrimaryNetDev.Defined() {
tmpNets := make([]string, 0, len(n.NetDevs))
for key := range node.NetDevs {
for key := range n.NetDevs {
tmpNets = append(tmpNets, key)
}
sort.Strings(tmpNets)