Make Attributes optional in case of Chargers

This commit is contained in:
TeoV
2020-07-24 16:13:20 +03:00
committed by Dan Christian Bogos
parent 76aa0c8371
commit bb0f2602d2
2 changed files with 58 additions and 1 deletions

View File

@@ -148,7 +148,10 @@ func (cS *ChargerService) processEvent(cgrEv *utils.CGREventWithOpts) (rply []*C
var evReply AttrSProcessEventReply
if err = cS.connMgr.Call(cS.cfg.ChargerSCfg().AttributeSConns, nil,
utils.AttributeSv1ProcessEvent, args, &evReply); err != nil {
return nil, err
if err.Error() != utils.ErrNotFound.Error() {
return nil, err
}
err = nil
}
rply[i].AttributeSProfiles = evReply.MatchedProfiles
if len(evReply.AlteredFields) != 0 {