This commit is contained in:
Sebastien Blot 2023-10-19 17:20:33 +02:00
parent ef118a49ff
commit 68c78249d5
No known key found for this signature in database
GPG key ID: DFC2902F40449F6A

View file

@ -119,6 +119,9 @@ func (h *Hub) getItemInfo(path string) (itemFileInfo, bool, error) {
} else if ret.stage == WAAP_RULES {
ret.ftype = WAAP_RULES
ret.stage = ""
} else if ret.stage == WAAP_CONFIGS {
ret.ftype = WAAP_CONFIGS
ret.stage = ""
} else if ret.ftype != PARSERS && ret.ftype != POSTOVERFLOWS {
// its a PARSER / PARSER_OVFLW with a stage
return itemFileInfo{}, inhub, fmt.Errorf("unknown configuration type for file '%s'", path)