diff --git a/internal/pkg/node/methods.go b/internal/pkg/node/methods.go index 2e0546af..ab65b487 100644 --- a/internal/pkg/node/methods.go +++ b/internal/pkg/node/methods.go @@ -4,6 +4,8 @@ import ( "fmt" "regexp" "strings" + + "github.com/hpcng/warewulf/internal/pkg/wwlog" ) /********** @@ -55,8 +57,9 @@ func (ent *Entry) Set(val string) { return } - if val == "UNDEF" || val == "DELETE" || val == "UNSET" || val == "--" { - ent.value = []string{} + if val == "UNDEF" || val == "DELETE" || val == "UNSET" || val == "--" || val == "nil" { + wwlog.Debug("Removing value for %v\n", *ent) + ent.value = []string{""} } else { ent.value = []string{val} }