From 6bc437faa3baa67f4179f8cbefc6c77932d88bac Mon Sep 17 00:00:00 2001 From: Antoine Jacquemin Date: Tue, 7 Nov 2023 12:32:14 +0100 Subject: [PATCH] better factoring --- file/builder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {