Remove json config overriding with env vars
in LoadJSON for restapi and cluster Config License: MIT Signed-off-by: Robert Ignat <robert.ignat91@gmail.com>
This commit is contained in:
parent
032f02802f
commit
21a539159f
|
@ -243,12 +243,6 @@ func (cfg *Config) LoadJSON(raw []byte) error {
|
|||
|
||||
cfg.Default()
|
||||
|
||||
// override json config with env var
|
||||
err = envconfig.Process(envConfigKey, jcfg)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return cfg.applyJSONConfig(jcfg)
|
||||
}
|
||||
|
||||
|
|
|
@ -318,12 +318,6 @@ for more information.`)
|
|||
return errors.New("cluster.Peers and cluster.Bootstrap keys have been deprecated")
|
||||
}
|
||||
|
||||
// override json config with env var
|
||||
err = envconfig.Process(cfg.ConfigKey(), jcfg)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return cfg.applyConfigJSON(jcfg)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user