Merge pull request #297 from gmkurtzer/discoverable-fix
Discoverable and network fixes
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user