diff --git a/internal/pkg/node/constructors.go b/internal/pkg/node/constructors.go index f17ea167..35224eba 100644 --- a/internal/pkg/node/constructors.go +++ b/internal/pkg/node/constructors.go @@ -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 diff --git a/internal/pkg/node/methods.go b/internal/pkg/node/methods.go index 63e5c972..96f5c241 100644 --- a/internal/pkg/node/methods.go +++ b/internal/pkg/node/methods.go @@ -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 + } }