Fix identifiers in templates not working (#2037)

Fixes #2036
This commit is contained in:
Andreas Linde 2021-12-13 18:06:16 +01:00 • committed by GitHub
parent cd43f09263
commit 0c4e338c22
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -351,6 +351,12 @@ func (t *Template) RenderResult(docs bool, other map[string]interface{}) ([]byte
for item, p := range values {
switch p := p.(type) {
case []interface{}:
var list []string
for _, v := range p {
list = append(list, yamlQuote(fmt.Sprintf("%v", v)))
}
values[item] = list
case []string:
var list []string
for _, v := range p {