removed getters as configs must exportable

Signed-off-by: Christian Goll <cgoll@suse.de>
This commit is contained in:
Christian Goll
2023-03-06 09:59:25 +01:00
parent c708154924
commit 290c6449dd
17 changed files with 29 additions and 103 deletions

View File

@@ -39,10 +39,10 @@ defaultnode:
func init() {
conf := warewulfconf.New()
if ConfigFile == "" {
ConfigFile = path.Join(conf.SYSCONFDIR(), "warewulf/nodes.conf")
ConfigFile = path.Join(conf.Paths.Sysconfdir, "warewulf/nodes.conf")
}
if DefaultConfig == "" {
DefaultConfig = path.Join(conf.SYSCONFDIR(), "warewulf/defaults.conf")
DefaultConfig = path.Join(conf.Paths.Sysconfdir, "warewulf/defaults.conf")
}
}