Read the defaults for anode from defaults.conf

This commit is contained in:
Christian Goll
2022-09-15 10:33:27 +02:00
parent 6cc58fcfff
commit efd761f7c3
6 changed files with 82 additions and 15 deletions

View File

@@ -1,10 +1,5 @@
package node
import (
"github.com/hpcng/warewulf/internal/pkg/util"
"github.com/hpcng/warewulf/internal/pkg/wwlog"
)
/******
* YAML data representations
******/
@@ -163,6 +158,8 @@ type NetDevEntry struct {
// string which is printed if no value is set
const NoValue = "--"
/*
Has no real purpose as only New() needs it
func init() {
// Check that nodes.conf is found
if !util.IsFile(ConfigFile) {
@@ -171,3 +168,4 @@ func init() {
return
}
}
*/