mirror of
https://github.com/grafana/grafana.git
synced 2024-11-25 18:30:41 -06:00
change template expansion missing value handling (#36679)
This commit is contained in:
parent
b37c59c1b2
commit
310d3ebe3d
@ -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())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user