From 68c78249d5eba12354e954712b0260cc8109a2cd Mon Sep 17 00:00:00 2001 From: Sebastien Blot Date: Thu, 19 Oct 2023 17:20:33 +0200 Subject: [PATCH] up --- pkg/cwhub/loader.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/cwhub/loader.go b/pkg/cwhub/loader.go index 2bd435d1c..7f59e9e03 100644 --- a/pkg/cwhub/loader.go +++ b/pkg/cwhub/loader.go @@ -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)