Updated the global CgrConfig for cgr-loader and cgr-migrator. Fixes#1532

This commit is contained in:
Tripon Alexandru-Ionut
2019-05-02 17:01:32 +03:00
committed by Dan Christian Bogos
parent a80365313c
commit a7fb5315db
2 changed files with 2 additions and 0 deletions

View File

@@ -119,6 +119,7 @@ func main() {
if ldrCfg, err = config.NewCGRConfigFromPath(*cfgPath); err != nil {
log.Fatalf("Error loading config file %s", err.Error())
}
config.SetCgrConfig(ldrCfg)
}
// Data for DataDB

View File

@@ -128,6 +128,7 @@ func main() {
if mgrCfg, err = config.NewCGRConfigFromPath(*cfgPath); err != nil {
log.Fatalf("error loading config file %s", err.Error())
}
config.SetCgrConfig(mgrCfg)
}
// inDataDB