From ad7582692cbb28f7a5bfa7d35d35a3433c86bd32 Mon Sep 17 00:00:00 2001 From: Jonathon Anderson Date: Tue, 8 Oct 2024 13:38:46 -0600 Subject: [PATCH] Omit the wwclient section from warewulf.conf if empty Signed-off-by: Jonathon Anderson --- internal/pkg/config/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/pkg/config/root.go b/internal/pkg/config/root.go index 5e6b1d9d..b34f958c 100644 --- a/internal/pkg/config/root.go +++ b/internal/pkg/config/root.go @@ -41,7 +41,7 @@ type RootConf struct { SSH *SSHConf `yaml:"ssh,omitempty"` MountsContainer []*MountEntry `yaml:"container mounts" default:"[{\"source\": \"/etc/resolv.conf\", \"dest\": \"/etc/resolv.conf\"}]"` Paths *BuildConfig `yaml:"paths"` - WWClient *WWClientConf `yaml:"wwclient"` + WWClient *WWClientConf `yaml:"wwclient,omitempty"` warewulfconf string }