From 9db48e211065bf0fea598159cd12663ea05dbb96 Mon Sep 17 00:00:00 2001 From: Sebastien Blot Date: Thu, 16 Nov 2023 17:17:33 +0100 Subject: [PATCH] fix collections install/inspect with waap-{rules,configs} --- pkg/cwhub/items.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/cwhub/items.go b/pkg/cwhub/items.go index f2558e2df..facf53dfb 100644 --- a/pkg/cwhub/items.go +++ b/pkg/cwhub/items.go @@ -75,8 +75,8 @@ type Item struct { PostOverflows []string `json:"postoverflows,omitempty" yaml:"postoverflows,omitempty"` Scenarios []string `json:"scenarios,omitempty" yaml:"scenarios,omitempty"` Collections []string `json:"collections,omitempty" yaml:"collections,omitempty"` - WaapConfigs []string `json:"waap_configs,omitempty" yaml:"waap_configs,omitempty"` - WaapRules []string `json:"waap_rules,omitempty" yaml:"waap_rules,omitempty"` + WaapConfigs []string `json:"waap-configs,omitempty" yaml:"waap-configs,omitempty"` + WaapRules []string `json:"waap-rules,omitempty" yaml:"waap-rules,omitempty"` } func (i *Item) HasSubItems() bool {