mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-13 19:56:38 +05:00
Make Attributes optional in case of Chargers
This commit is contained in:
committed by
Dan Christian Bogos
parent
76aa0c8371
commit
bb0f2602d2
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user