@@ -129,8 +129,6 @@ func (config *nodeYaml) FindAllNodes() ([]NodeInfo, error) {
|
||||
n.RuntimeOverlay.SetAlt(config.NodeProfiles[p].RuntimeOverlay, p)
|
||||
n.Root.SetAlt(config.NodeProfiles[p].Root, p)
|
||||
|
||||
n.Discoverable.SetAltB(config.NodeProfiles[p].Discoverable, p)
|
||||
|
||||
for devname, netdev := range config.NodeProfiles[p].NetDevs {
|
||||
if _, ok := n.NetDevs[devname]; !ok {
|
||||
var netdev NetDevEntry
|
||||
|
||||
@@ -61,8 +61,10 @@ func (ent *Entry) SetAlt(val string, from string) {
|
||||
}
|
||||
|
||||
func (ent *Entry) SetAltB(val bool, from string) {
|
||||
ent.altbool = val
|
||||
ent.from = from
|
||||
if val == true {
|
||||
ent.altbool = val
|
||||
ent.from = from
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user