From 73ed7d189134bf29a2dd38f4d8d969f01be383b5 Mon Sep 17 00:00:00 2001 From: Gregory Kurtzer Date: Fri, 20 Aug 2021 19:40:24 -0700 Subject: [PATCH] Another method to "unset" a configuration --- internal/pkg/node/methods.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/pkg/node/methods.go b/internal/pkg/node/methods.go index 63e5c972..a050695c 100644 --- a/internal/pkg/node/methods.go +++ b/internal/pkg/node/methods.go @@ -38,7 +38,7 @@ func (ent *Entry) Set(val string) { return } - if val == "UNDEF" || val == "DELETE" || val == "UNSET" { + if val == "UNDEF" || val == "DELETE" || val == "UNSET" || val == "--" { ent.value = "" } else { ent.value = val