From 04551ef2644974291b5aeb0e96d58fe409b576e4 Mon Sep 17 00:00:00 2001 From: Christian Goll Date: Wed, 8 Jun 2022 16:04:43 +0200 Subject: [PATCH] for removing a value an empty string is needed --- internal/pkg/node/methods.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/pkg/node/methods.go b/internal/pkg/node/methods.go index 2e0546af..322785ed 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" ) /********** @@ -56,7 +58,8 @@ func (ent *Entry) Set(val string) { } if val == "UNDEF" || val == "DELETE" || val == "UNSET" || val == "--" { - ent.value = []string{} + wwlog.Debug("Removing value for %v\n", *ent) + ent.value = []string{""} } else { ent.value = []string{val} }