This commit is contained in:
Sebastien Blot 2023-05-05 13:49:58 +02:00
parent d335e74c81
commit 6ac0a9ef9d
No known key found for this signature in database
GPG key ID: DFC2902F40449F6A
2 changed files with 6 additions and 1 deletions

View file

@ -332,6 +332,8 @@ func ShowMetrics(hubItem *cwhub.Item) {
} }
ShowMetrics(hubItem) ShowMetrics(hubItem)
} }
case cwhub.WAF_RULES:
log.Fatalf("FIXME: not implemented yet")
default: default:
log.Errorf("item of type '%s' is unknown", hubItem.Type) log.Errorf("item of type '%s' is unknown", hubItem.Type)
} }

View file

@ -90,8 +90,11 @@ func parser_visit(path string, f os.DirEntry, err error) error {
} else if stage == COLLECTIONS { } else if stage == COLLECTIONS {
ftype = COLLECTIONS ftype = COLLECTIONS
stage = "" stage = ""
} else if stage == WAF_RULES {
ftype = WAF_RULES
stage = ""
} else if ftype != PARSERS && ftype != PARSERS_OVFLW /*its a PARSER / PARSER_OVFLW with a stage */ { } else if ftype != PARSERS && ftype != PARSERS_OVFLW /*its a PARSER / PARSER_OVFLW with a stage */ {
return fmt.Errorf("unknown configuration type for file '%s'", path) return fmt.Errorf("unknown configuration type %s for file '%s'", ftype, path)
} }
log.Tracef("CORRECTED [%s] by [%s] in stage [%s] of type [%s]", fname, fauthor, stage, ftype) log.Tracef("CORRECTED [%s] by [%s] in stage [%s] of type [%s]", fname, fauthor, stage, ftype)