Skip to content

Commit

Permalink
fix: ignore folder case in dashboard controller (#1036)
Browse files Browse the repository at this point in the history
  • Loading branch information
weisdd committed May 6, 2023
1 parent 0f0239f commit a9022f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/dashboard_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ func (r *GrafanaDashboardReconciler) GetFolderID(client *grapi.Client,
}

for _, folder := range folders {
if folder.Title == cr.Spec.FolderTitle {
if strings.EqualFold(folder.Title, cr.Spec.FolderTitle) {
return folder.ID, nil
}
continue
Expand Down

0 comments on commit a9022f4

Please sign in to comment.