diff --git a/pkg/services/ngalert/state/cache.go b/pkg/services/ngalert/state/cache.go index 2057f043cf7..8795082e131 100644 --- a/pkg/services/ngalert/state/cache.go +++ b/pkg/services/ngalert/state/cache.go @@ -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()) }