diff --git a/template/parse.go b/template/parse.go index 9f37929a3..de54f091c 100644 --- a/template/parse.go +++ b/template/parse.go @@ -144,6 +144,11 @@ func (r *rawTemplate) Template() (*Template, error) { continue } + // The name defaults to the type if it isn't set + if pp.Name == "" { + pp.Name = pp.Type + } + // Set the configuration delete(c, "except") delete(c, "only")