diff --git a/file/builder.go b/file/builder.go index 41cfa341c..b54f1f1c8 100644 --- a/file/builder.go +++ b/file/builder.go @@ -945,9 +945,9 @@ func (b *stateBuilder) plugins() { } var plugins []FPlugin + sharedEntities := make(map[string]bool) for _, p := range b.targetContent.Plugins { p := p - sharedEntities := make(map[string]bool) if p.SharedTag != nil && !sharedEntities[*p.SharedTag] { consumersGlobal, err := dump.GetAllConsumers(b.ctx, b.client, []string{*p.SharedTag}) for _, c := range consumersGlobal {