Skip to content

Commit

Permalink
config: add 'omitempty' to 'updaters' config struct for correct marsh…
Browse files Browse the repository at this point in the history
…alling

Signed-off-by: Alec Merdler <alecmerdler@gmail.com>
  • Loading branch information
alecmerdler committed Nov 12, 2020
1 parent ba70ca3 commit bb3cd66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
//
Expand Down

0 comments on commit bb3cd66

Please sign in to comment.