diff --git a/internal/cnpgi/instance/backup.go b/internal/cnpgi/instance/backup.go index ebf166c4d..b03314618 100644 --- a/internal/cnpgi/instance/backup.go +++ b/internal/cnpgi/instance/backup.go @@ -83,7 +83,7 @@ func (b BackupServiceImplementation) Backup( var objectStore barmancloudv1.ObjectStore if err := b.Client.Get(ctx, configuration.GetBarmanObjectKey(), &objectStore); err != nil { - contextLogger.Error(err, "while getting object store", "key", configuration.GetRecoveryBarmanObjectKey()) + contextLogger.Error(err, "while getting object store", "key", configuration.GetBarmanObjectKey()) return nil, err } diff --git a/internal/cnpgi/instance/metrics.go b/internal/cnpgi/instance/metrics.go index d21a49c0d..cd7dd921f 100644 --- a/internal/cnpgi/instance/metrics.go +++ b/internal/cnpgi/instance/metrics.go @@ -116,7 +116,7 @@ func (m metricsImpl) Collect( var objectStore barmancloudv1.ObjectStore if err := m.Client.Get(ctx, configuration.GetBarmanObjectKey(), &objectStore); err != nil { - contextLogger.Error(err, "while getting object store", "key", configuration.GetRecoveryBarmanObjectKey()) + contextLogger.Error(err, "while getting object store", "key", configuration.GetBarmanObjectKey()) return nil, err }