Commit 233928c0 authored by ale's avatar ale

Fix yaml inline decoding

parent 1ef2b30d
Pipeline #1026 passed with stages
in 1 minute and 28 seconds
......@@ -28,7 +28,7 @@ type config struct {
BindPwFile string `yaml:"bind_pw_file"`
BaseDN string `yaml:"base_dn"`
} `yaml:"ldap"`
AccountServerConfig *accountserver.Config `yaml:",inline"`
AccountServerConfig accountserver.Config `yaml:",inline"`
ServerConfig *serverutil.ServerConfig `yaml:"http_server"`
}
......@@ -108,7 +108,7 @@ func main() {
log.Fatal(err)
}
service, err := accountserver.NewAccountService(be, config.AccountServerConfig)
service, err := accountserver.NewAccountService(be, &config.AccountServerConfig)
if err != nil {
log.Fatal(err)
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment