From c1b5f6360684535cded1b1e2b94e84d6f81355a2 Mon Sep 17 00:00:00 2001 From: Jim Fitzpatrick Date: Mon, 9 Sep 2024 16:23:36 +0100 Subject: [PATCH] FIX: add forgotten if check Signed-off-by: Jim Fitzpatrick --- controller/controller.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/controller/controller.go b/controller/controller.go index 537df5e..2c90bfc 100644 --- a/controller/controller.go +++ b/controller/controller.go @@ -247,7 +247,9 @@ func (c *Controller) delete(obj Object) { func (c *Controller) propagate(resourceEvents []ResourceEvent) { topology, err := c.topology.Build(c.cache.List()) - c.logger.Error(err, "error building topology") + if err != nil { + c.logger.Error(err, "error building topology") + } c.reconcile(LoggerIntoContext(context.TODO(), c.logger), resourceEvents, topology, err) }