1
0
mirror of https://github.com/rancher/os.git synced 2025-09-13 13:39:53 +00:00

make golang files to pass the latest go lints

- use constructors with named fields
- fix logf statements
This commit is contained in:
Lonnie Liu
2021-02-15 09:13:14 -08:00
committed by Olli Janatuinen
parent 6fd46ddee4
commit 6cde287f87
8 changed files with 44 additions and 38 deletions

View File

@@ -32,8 +32,8 @@ func Bootstrap(cfg *config.CloudConfig) error {
_, err = config.ChainCfgFuncs(cfg,
[]config.CfgFuncData{
{"bootstrap loadImages", sysinit.LoadBootstrapImages},
{"bootstrap Services", bootstrapServices},
{Name: "bootstrap loadImages", Func: sysinit.LoadBootstrapImages},
{Name: "bootstrap Services", Func: bootstrapServices},
})
return err
}