Skip to content

Commit

Permalink
Fix template generation (#202)
Browse files Browse the repository at this point in the history
Method signature for `template.New` changed in Beats recently.
  • Loading branch information
webmat authored Nov 30, 2018
1 parent 5ff9e9c commit 0774d9d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ func main() {
fields = append(fields, f...)
}

t, err := template.New("1.0.0", "ecs", "6.0.0", template.TemplateConfig{})
// If getting a failure on the following instantiation, check out / update Beats master
version := common.MustNewVersion("6.0.0")
t, err := template.New("1.0.0", "ecs", *version, template.TemplateConfig{})
if err != nil {
fmt.Printf("Error: %s \n", err)
os.Exit(1)
Expand Down

0 comments on commit 0774d9d

Please sign in to comment.