mirror of https://github.com/helm/helm.git
parent
97774ee13c
commit
5396df2e28
|
@ -305,8 +305,15 @@ func (t *parser) listItem(list []interface{}, i int) ([]interface{}, error) {
|
|||
if err != nil {
|
||||
return list, errors.Wrap(err, "error parsing index")
|
||||
}
|
||||
var crtList []interface{}
|
||||
if len(list) > i {
|
||||
// If nested list already exists, take the value of list to next cycle.
|
||||
crtList = list[i].([]interface{})
|
||||
} else {
|
||||
crtList = list
|
||||
}
|
||||
// Now we need to get the value after the ].
|
||||
list2, err := t.listItem(list, i)
|
||||
list2, err := t.listItem(crtList, i)
|
||||
if err != nil {
|
||||
return list, err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue