From 78fa850aa72095530b9deaf34787b744eeea2195 Mon Sep 17 00:00:00 2001 From: Thibault Mange <22740367+thibaultmg@users.noreply.github.com> Date: Wed, 15 Jan 2025 14:50:12 +0100 Subject: [PATCH] fix lint Signed-off-by: Thibault Mange <22740367+thibaultmg@users.noreply.github.com> --- .../pkg/rendering/renderer_grafana.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/operators/multiclusterobservability/pkg/rendering/renderer_grafana.go b/operators/multiclusterobservability/pkg/rendering/renderer_grafana.go index 2f0070fe4..8bb5378bc 100644 --- a/operators/multiclusterobservability/pkg/rendering/renderer_grafana.go +++ b/operators/multiclusterobservability/pkg/rendering/renderer_grafana.go @@ -108,7 +108,9 @@ func (r *MCORenderer) renderGrafanaTemplates(templates []*resource.Resource, // Add deprecated suffix to the old dashboard names when MCOA is activated. if MCOAPlatformMetricsEnabled(r.cr) && isNonMCOASpecificDashboard(template) { - addDeprecatedSuffixToDashboardName(template) + if err := addDeprecatedSuffixToDashboardName(template); err != nil { + return []*unstructured.Unstructured{}, fmt.Errorf("failed to modify dashboard title with deprecated suffix: %w", err) + } } render, ok := r.renderGrafanaFns[template.GetKind()]