removed doubled entries form conf.Path
tftp.tftproot was also avlailable under paths.tftdir, removed paths.tftpdir warewulfconf.datastore was also availbale under paths.datadir, remove paths.datadir Signed-off-by: Christian Goll <cgoll@suse.com>
This commit is contained in:
committed by
Jonathon Anderson
parent
58069cfb13
commit
24cb00e068
@@ -49,7 +49,7 @@ func New() (NodeYaml, error) {
|
||||
ConfigFile = path.Join(conf.Paths.Sysconfdir, "warewulf/nodes.conf")
|
||||
}
|
||||
if DefaultConfig == "" {
|
||||
DefaultConfig = path.Join(conf.Paths.Datadir, "warewulf/defaults.conf")
|
||||
DefaultConfig = path.Join(conf.Warewulf.DataStore, "warewulf/defaults.conf")
|
||||
}
|
||||
wwlog.Verbose("Opening node configuration file: %s", ConfigFile)
|
||||
data, err := os.ReadFile(ConfigFile)
|
||||
|
||||
Reference in New Issue
Block a user