switch graph to struct tag based env config

This commit is contained in:
Willy Kloucek
2022-01-03 07:49:24 +01:00
parent 4067ae9493
commit 30656c5a32
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
}