Skip to content

Commit

Permalink
Add missing mapstructure annotations to config (#101)
Browse files Browse the repository at this point in the history
Otherwise it wont unmarshall the config properly

Signed-off-by: Itxaka <igarcia@suse.com>
  • Loading branch information
Itxaka authored Aug 1, 2022
1 parent 2d5fde7 commit 846d313
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ func (in *Install) DeepCopyInto(out *Install) {
type Registration struct {
URL string `json:"url,omitempty" yaml:"url,omitempty" mapstructure:"url"`
CACert string `json:"ca-cert,omitempty" yaml:"ca-cert,omitempty" mapstructure:"ca-cert"`
EmulateTPM bool `json:"emulate-tpm,omitempty" yaml:"emulate-tpm,omitempty"`
EmulatedTPMSeed int64 `json:"emulated-tpm-seed,omitempty" yaml:"emulated-tpm-seed,omitempty"`
NoSMBIOS bool `json:"no-smbios,omitempty" yaml:"no-smbios,omitempty"`
Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`
EmulateTPM bool `json:"emulate-tpm,omitempty" yaml:"emulate-tpm,omitempty" mapstructure:"emulate-tpm"`
EmulatedTPMSeed int64 `json:"emulated-tpm-seed,omitempty" yaml:"emulated-tpm-seed,omitempty" mapstructure:"emulated-tpm-seed"`
NoSMBIOS bool `json:"no-smbios,omitempty" yaml:"no-smbios,omitempty" mapstructure:"no-smbios"`
Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty" mapstructure:"labels"`
}

type SystemAgent struct {
Expand Down

0 comments on commit 846d313

Please sign in to comment.