Omit the wwclient section from warewulf.conf if empty

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
Jonathon Anderson
2024-10-08 13:38:46 -06:00
parent a9b908e339
commit ad7582692c

View File

@@ -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
}