From bb3cd669f66345aaa0fc5df6f502f34922cc069e Mon Sep 17 00:00:00 2001 From: Alec Merdler Date: Tue, 10 Nov 2020 13:09:10 -0800 Subject: [PATCH] config: add 'omitempty' to 'updaters' config struct for correct marshalling Signed-off-by: Alec Merdler --- config/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/config.go b/config/config.go index 4e3df830c3..2e2f246f34 100644 --- a/config/config.go +++ b/config/config.go @@ -58,7 +58,7 @@ type Config struct { Auth Auth `yaml:"auth" json:"auth"` Trace Trace `yaml:"trace" json:"trace"` Metrics Metrics `yaml:"metrics" json:"metrics"` - Updaters Updaters `yaml:"updaters" json:"updaters"` + Updaters Updaters `yaml:"updaters,omitempty" json:"updaters,omitempty"` } // Updaters configures updater behavior. @@ -78,7 +78,7 @@ type Updaters struct { // "rhel" // "suse" // "ubuntu" - Sets []string `yaml:"sets" json:"sets"` + Sets []string `yaml:"sets,omitempty" json:"sets,omitempty"` // Config holds configuration blocks for UpdaterFactories and Updaters, // keyed by name. //