diff --git a/internal/pkg/warewulfconf/datastructure.go b/internal/pkg/warewulfconf/datastructure.go index 4d0caf72..c69ffdcc 100644 --- a/internal/pkg/warewulfconf/datastructure.go +++ b/internal/pkg/warewulfconf/datastructure.go @@ -51,7 +51,9 @@ type NfsConf struct { } func (s *NfsConf) UnmarshalYAML(unmarshal func(interface{}) error) error { - defaults.Set(s) + if err := defaults.Set(s); err != nil { + return err + } type plain NfsConf if err := unmarshal((*plain)(s)); err != nil {