Skip to content

Commit

Permalink
Comment explaining the need for go/object_dashboard_DataSourceRef_cus…
Browse files Browse the repository at this point in the history
…tom_unmarshal.tmpl
  • Loading branch information
K-Phoen committed Oct 9, 2024
1 parent a0dfeea commit a6da34d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{- define "object_dashboard_DataSourceRef_custom_unmarshal" }}
{{- /* Non-standard unmarshalling, to support "legacy" datasource references. ie: older versions of Grafana reference datasources directly by their name */ -}}
func (resource *DataSourceRef) UnmarshalJSON(raw []byte) error {
if raw == nil {
return nil
Expand Down

0 comments on commit a6da34d

Please sign in to comment.