mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-24 08:38:45 +05:00
Fixes for DispatcherS tests
This commit is contained in:
committed by
Dan Christian Bogos
parent
cf72c0aac3
commit
bb2d874319
@@ -2821,7 +2821,9 @@ func APItoDispatcherProfile(tpDPP *utils.TPDispatcherProfile, timezone string) (
|
||||
dpp.Subsystems[i] = sub
|
||||
}
|
||||
for i, param := range tpDPP.StrategyParams {
|
||||
dpp.StrategyParams[string(i)] = param
|
||||
if param != "" {
|
||||
dpp.StrategyParams[strconv.Itoa(i)] = param
|
||||
}
|
||||
}
|
||||
for i, conn := range tpDPP.Conns {
|
||||
dpp.Conns[i] = &DispatcherConn{
|
||||
@@ -2835,7 +2837,9 @@ func APItoDispatcherProfile(tpDPP *utils.TPDispatcherProfile, timezone string) (
|
||||
dpp.Conns[i].FilterIDs[j] = fltr
|
||||
}
|
||||
for j, param := range conn.Params {
|
||||
dpp.Conns[i].Params[string(j)] = param
|
||||
if param != "" {
|
||||
dpp.Conns[i].Params[strconv.Itoa(j)] = param
|
||||
}
|
||||
}
|
||||
}
|
||||
if tpDPP.ActivationInterval != nil {
|
||||
|
||||
Reference in New Issue
Block a user