Correct handle error in acse of APIerSv1.GetActionTriggers

This commit is contained in:
TeoV
2020-12-20 08:20:05 +02:00
committed by Dan Christian Bogos
parent 2116571e57
commit d0430f0545

View File

@@ -478,6 +478,9 @@ func (api *APIerSv1) GetActionTriggers(attr AttrGetActionTriggers, atrs *engine.
if err != nil {
return err
}
if len(keys) == 0 {
return utils.ErrNotFound
}
for _, key := range keys {
getAttrs, err := api.DataManager.GetActionTriggers(key[len(utils.ACTION_TRIGGER_PREFIX):], false, utils.NonTransactional)
if err != nil {