From 1351fa14e5cd8c41d6c57b837381f677cac8c477 Mon Sep 17 00:00:00 2001 From: Marco Nenciarini Date: Fri, 19 Sep 2025 18:26:58 +0200 Subject: [PATCH] fix(logs): log the correct name when on ObjectStore not found error Closes #539 Signed-off-by: Marco Nenciarini --- internal/cnpgi/operator/reconciler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/cnpgi/operator/reconciler.go b/internal/cnpgi/operator/reconciler.go index ec80f13..bb6c60b 100644 --- a/internal/cnpgi/operator/reconciler.go +++ b/internal/cnpgi/operator/reconciler.go @@ -81,8 +81,8 @@ func (r ReconcilerImplementation) Pre( if apierrs.IsNotFound(err) { contextLogger.Info( "barman object configuration not found, requeuing", - "name", pluginConfiguration.BarmanObjectName, - "namespace", cluster.Namespace) + "name", barmanObjectKey.Name, + "namespace", barmanObjectKey.Namespace) return &reconciler.ReconcilerHooksResult{ Behavior: reconciler.ReconcilerHooksResult_BEHAVIOR_REQUEUE, }, nil