Merge pull request #99 from gmkurtzer/discoverable-fix

Merging
This commit is contained in:
Gregory M. Kurtzer
2021-08-22 19:08:49 -07:00
committed by GitHub
2 changed files with 4 additions and 4 deletions

View File

@@ -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

View File

@@ -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
}
}