Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: Thibault Mange <[email protected]>
  • Loading branch information
thibaultmg committed Jan 15, 2025
1 parent 2b0afc1 commit 78fa850
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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()]
Expand Down

0 comments on commit 78fa850

Please sign in to comment.