Merge pull request #297 from gmkurtzer/discoverable-fix

Discoverable and network fixes
This commit is contained in:
Gregory M. Kurtzer
2022-02-11 19:23:46 -08:00
committed by GitHub
5 changed files with 26 additions and 31 deletions

View File

@@ -144,17 +144,7 @@ func CobraRunE(cmd *cobra.Command, args []string) error {
if _, ok := p.NetDevs[SetNetName]; !ok {
var nd node.NetDevEntry
SetNetOnBoot = "yes"
if len(p.NetDevs) == 0 {
SetNetDefault = "yes"
}
p.NetDevs[SetNetName] = &nd
if SetNetDev == "" {
p.NetDevs[SetNetName].Device.Set(SetNetName)
}
}
}