From 6649d7d98c3bc2e6a4042845dd6a330db19ceae1 Mon Sep 17 00:00:00 2001 From: Juliano Martinez Date: Tue, 5 Dec 2023 18:55:19 +0100 Subject: [PATCH] cleanup nodes --- pkg/aclmanager/aclmanager.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/aclmanager/aclmanager.go b/pkg/aclmanager/aclmanager.go index f3ae00c..520f503 100644 --- a/pkg/aclmanager/aclmanager.go +++ b/pkg/aclmanager/aclmanager.go @@ -85,6 +85,12 @@ func (a *AclManager) findNodes(ctx context.Context) (err error) { } } + for _, node := range nodes { + if _, ok := a.nodes[node]; !ok { + delete(a.nodes, node) + } + } + if err := scanner.Err(); err != nil { return err }