up
This commit is contained in:
parent
d40e9fb760
commit
0e717cb558
1 changed files with 9 additions and 2 deletions
|
@ -53,14 +53,21 @@ func LoadCollection(pattern string) ([]WaapCollection, error) {
|
|||
|
||||
for _, waapRule := range waapRules {
|
||||
|
||||
matched, err := exprhelpers.Match(pattern, waapRule.Name)
|
||||
tmpMatch, err := exprhelpers.Match(pattern, waapRule.Name)
|
||||
|
||||
if err != nil {
|
||||
log.Errorf("unable to match %s with %s : %s", waapRule.Name, pattern, err)
|
||||
continue
|
||||
}
|
||||
|
||||
if !matched.(bool) {
|
||||
matched, ok := tmpMatch.(bool)
|
||||
|
||||
if !ok {
|
||||
log.Errorf("unable to match %s with %s : %s", waapRule.Name, pattern, err)
|
||||
continue
|
||||
}
|
||||
|
||||
if !matched {
|
||||
continue
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue