Use keyed fields
This commit is contained in:
parent
880af47cc5
commit
db27959c8b
4
gen.go
4
gen.go
@ -17,7 +17,9 @@ func genConfig(at config.ArtifactType) (err error) {
|
|||||||
Type: at,
|
Type: at,
|
||||||
}
|
}
|
||||||
a.SupportedKernels = append(a.SupportedKernels, config.KernelMask{
|
a.SupportedKernels = append(a.SupportedKernels, config.KernelMask{
|
||||||
config.Ubuntu, "18.04", ".*",
|
DistroType: config.Ubuntu,
|
||||||
|
DistroRelease: "18.04",
|
||||||
|
ReleaseMask: ".*",
|
||||||
})
|
})
|
||||||
|
|
||||||
buf, err := toml.Marshal(&a)
|
buf, err := toml.Marshal(&a)
|
||||||
|
Loading…
Reference in New Issue
Block a user