Merge pull request #781 from anderbubble/config-refactor
Refactor package that handles warewulf.conf
This commit is contained in:
@@ -8,7 +8,7 @@ import (
|
||||
"sort"
|
||||
"strings"
|
||||
|
||||
"github.com/hpcng/warewulf/internal/pkg/warewulfconf"
|
||||
warewulfconf "github.com/hpcng/warewulf/internal/pkg/config"
|
||||
"github.com/hpcng/warewulf/internal/pkg/wwlog"
|
||||
|
||||
"gopkg.in/yaml.v2"
|
||||
@@ -41,7 +41,7 @@ defaultnode:
|
||||
onboot: true`
|
||||
|
||||
func init() {
|
||||
conf := warewulfconf.New()
|
||||
conf := warewulfconf.Get()
|
||||
if ConfigFile == "" {
|
||||
ConfigFile = path.Join(conf.Paths.Sysconfdir, "warewulf/nodes.conf")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user