From 652cbe5252a9695375e68d2c833d8e643c715e12 Mon Sep 17 00:00:00 2001 From: Kajol Asabe Date: Thu, 22 Aug 2024 17:58:05 +0530 Subject: [PATCH] Move delete inside if --- controllers/network_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/network_controller.go b/controllers/network_controller.go index f025751..2de95a1 100644 --- a/controllers/network_controller.go +++ b/controllers/network_controller.go @@ -309,8 +309,8 @@ func (r *NetworkReconciler) reconcilePeeredVNIs(ctx context.Context, log logr.Lo errs = append(errs, err) continue } + delete(networkPeeringState, peeredVNI) } - delete(networkPeeringState, peeredVNI) } if err := errors.Join(errs...); err != nil {