mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-16 13:49:53 +05:00
Temporary fix for new type of filter *resources
This commit is contained in:
committed by
Dan Christian Bogos
parent
15d86640e7
commit
a37cd65587
@@ -538,17 +538,17 @@ func (fltr *FilterRule) passResourceS(dP config.DataProvider,
|
||||
if resourceS == nil || reflect.ValueOf(resourceS).IsNil() {
|
||||
return false, errors.New("Missing ResourceS information")
|
||||
}
|
||||
for _, resItem := range fltr.resourceItems {
|
||||
//take total usage for resource
|
||||
// for _, resItem := range fltr.resourceItems {
|
||||
// //take total usage for resource
|
||||
|
||||
//compose the newFilter
|
||||
// //compose the newFilter
|
||||
|
||||
//send it to passGreaterThan
|
||||
// if val, err := fltr.passGreaterThan(nM); err != nil || !val {
|
||||
// //in case of error return false and error
|
||||
// //and in case of not pass return false and nil
|
||||
// return false, err
|
||||
// }
|
||||
}
|
||||
// //send it to passGreaterThan
|
||||
// // if val, err := fltr.passGreaterThan(nM); err != nil || !val {
|
||||
// // //in case of error return false and error
|
||||
// // //and in case of not pass return false and nil
|
||||
// // return false, err
|
||||
// // }
|
||||
// }
|
||||
return true, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user