This commit is contained in:
Sebastien Blot 2023-10-20 11:58:57 +02:00
parent 1468bb9681
commit 0acda36d33
No known key found for this signature in database
GPG key ID: DFC2902F40449F6A
2 changed files with 2 additions and 2 deletions

View file

@ -121,7 +121,7 @@ func (h *Hub) DownloadLatest(target *Item, overwrite bool, updateOnly bool) erro
}
// collection
var tmp = [][]string{target.Parsers, target.PostOverflows, target.Scenarios, target.Collections}
var tmp = [][]string{target.Parsers, target.PostOverflows, target.Scenarios, target.WaapRules, target.WaapConfigs, target.Collections}
for idx, ptr := range tmp {
ptrtype := ItemTypes[idx]
for _, p := range ptr {

View file

@ -167,7 +167,7 @@ func (h *Hub) EnableItem(target *Item) error {
// install sub-items if it's a collection
if target.Type == COLLECTIONS {
for idx, ptr := range [][]string{target.Parsers, target.PostOverflows, target.Scenarios, target.Collections} {
for idx, ptr := range [][]string{target.Parsers, target.PostOverflows, target.Scenarios, target.WaapRules, target.WaapConfigs, target.Collections} {
ptrtype := ItemTypes[idx]
for _, p := range ptr {
val, ok := h.Items[ptrtype][p]