mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
change template expansion missing value handling (#36679)
This commit is contained in:
@@ -123,7 +123,7 @@ func expandTemplate(name, text string, data map[string]string) (result string, r
|
||||
}
|
||||
}()
|
||||
|
||||
tmpl, err := text_template.New(name).Option("missingkey=zero").Parse(text)
|
||||
tmpl, err := text_template.New(name).Option("missingkey=error").Parse(text)
|
||||
if err != nil {
|
||||
return "", fmt.Errorf("error parsing template %v: %s", name, err.Error())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user