Restore server network auto-detection

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
Jonathon Anderson
2025-02-05 17:14:40 -07:00
parent abc3a0ee2d
commit 73f34d0099
13 changed files with 113 additions and 15 deletions

View File

@@ -87,7 +87,7 @@ func rootPersistentPreRunE(cmd *cobra.Command, args []string) (err error) {
conf := warewulfconf.Get()
if !AllowEmptyConf && !conf.InitializedFromFile() {
if err = conf.Read(warewulfconf.ConfigFile); err != nil {
if err = conf.Read(warewulfconf.ConfigFile, true); err != nil {
wwlog.Error("error reading config file: %s", err)
return
}