mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Added _ between id and index
This commit is contained in:
committed by
Dan Christian Bogos
parent
f8de227351
commit
7a686d5d1c
@@ -164,8 +164,8 @@ func (m *Migrator) derivedChargers2Chargers(dck *v1DerivedChargersWithKey) (err
|
||||
}
|
||||
|
||||
for i, dc := range dck.Value.Chargers {
|
||||
attr := derivedChargers2AttributeProfile(dc, skey[1], fmt.Sprintf("%s%v", dck.Key, i), filter)
|
||||
ch := derivedChargers2Charger(dc, skey[1], fmt.Sprintf("%s%v", dck.Key, i), filter)
|
||||
attr := derivedChargers2AttributeProfile(dc, skey[1], fmt.Sprintf("%s_%v", dck.Key, i), filter)
|
||||
ch := derivedChargers2Charger(dc, skey[1], fmt.Sprintf("%s_%v", dck.Key, i), filter)
|
||||
if len(attr.Attributes) != 0 {
|
||||
if err = m.dmOut.DataManager().DataDB().SetAttributeProfileDrv(attr); err != nil {
|
||||
return err
|
||||
|
||||
@@ -159,7 +159,7 @@ func testDCITMigrateAndMove(t *testing.T) {
|
||||
}
|
||||
attrProf := &engine.AttributeProfile{
|
||||
Tenant: "cgrates.org",
|
||||
ID: fmt.Sprintf("%s%v", derivch.Key, 0),
|
||||
ID: fmt.Sprintf("%s_%v", derivch.Key, 0),
|
||||
Contexts: []string{utils.META_ANY},
|
||||
FilterIDs: []string{
|
||||
"*destination:Destination:1001;1002;1003",
|
||||
@@ -186,7 +186,7 @@ func testDCITMigrateAndMove(t *testing.T) {
|
||||
attrProf.Compile()
|
||||
charger := &engine.ChargerProfile{
|
||||
Tenant: defaultTenant,
|
||||
ID: fmt.Sprintf("%s%v", derivch.Key, 0),
|
||||
ID: fmt.Sprintf("%s_%v", derivch.Key, 0),
|
||||
FilterIDs: []string{
|
||||
"*destination:Destination:1001;1002;1003",
|
||||
"*string:Account:1003",
|
||||
|
||||
Reference in New Issue
Block a user