mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Change config_dir to config_path for cgr-migrator
This commit is contained in:
committed by
Dan Christian Bogos
parent
f728620dd7
commit
b5ad475434
@@ -38,7 +38,7 @@ var (
|
||||
storDBIn, storDBOut migrator.MigratorStorDB
|
||||
err error
|
||||
dfltCfg, _ = config.NewDefaultCGRConfig()
|
||||
cfgDir = cgrMigratorFlags.String("config_dir", "",
|
||||
cfgPath = cgrMigratorFlags.String("config_path", "",
|
||||
"Configuration directory path.")
|
||||
|
||||
migrate = cgrMigratorFlags.String("migrate", "", "fire up automatic migration "+
|
||||
@@ -120,8 +120,8 @@ func main() {
|
||||
}
|
||||
|
||||
mgrCfg := dfltCfg
|
||||
if *cfgDir != "" {
|
||||
if mgrCfg, err = config.NewCGRConfigFromFolder(*cfgDir); err != nil {
|
||||
if *cfgPath != "" {
|
||||
if mgrCfg, err = config.NewCGRConfigFromFolder(*cfgPath); err != nil {
|
||||
log.Fatalf("error loading config file %s", err.Error())
|
||||
}
|
||||
}
|
||||
|
||||
@@ -55,7 +55,6 @@ var sTestsRPCMethods = []func(t *testing.T){
|
||||
testRPCMethodsTerminateSession,
|
||||
testRPCMethodsProcessCDR,
|
||||
testRPCMethodsProcessEvent,
|
||||
|
||||
testRPCMethodsStopEngine,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user