From c4df9771d4a05e63daedd106f92b432cda797e67 Mon Sep 17 00:00:00 2001 From: Lars Karlslund Date: Mon, 18 Apr 2022 09:35:31 +0200 Subject: [PATCH] Make anti multi source merging case insensitive --- modules/engine/processing.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/engine/processing.go b/modules/engine/processing.go index c0e9d18..ccd4be0 100644 --- a/modules/engine/processing.go +++ b/modules/engine/processing.go @@ -77,13 +77,13 @@ func Merge(aos []*Objects) (*Objects, error) { ) // To ease anti-cross-the-beams on UniqueSource we temporarily group each source and combine them in the end - sourcemap := make(map[string]*Objects) + sourcemap := make(map[interface{}]*Objects) nosourceobjects := NewObjects() for _, mergeobject := range needsmerge { if mergeobject.HasAttr(UniqueSource) { - us := mergeobject.OneAttrString(UniqueSource) + us := attributeValueToIndex(mergeobject.OneAttr(UniqueSource)) if sourcemap[us] == nil { sourcemap[us] = NewObjects() }