switch graph to struct tag based env config

This commit is contained in:
Willy Kloucek
2021-12-16 19:40:23 +01:00
committed by Jörn Friedrich Dreyer
parent 788a390016
commit 288d6c469e
8 changed files with 92 additions and 235 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ func Execute(cfg *config.Config) error {
// ParseConfig loads glauth configuration from known paths.
func ParseConfig(c *cli.Context, cfg *config.Config) error {
_, err := ociscfg.BindSourcesToStructs("accounts", cfg)
_, err := ociscfg.BindSourcesToStructs(cfg.Service.Name, cfg)
if err != nil {
return err
}