feat(helm): Check len of correct slice

pull/1917/head
Justin Scott 8 years ago
parent 8ef733ca7d
commit faae1f68b6

@ -386,7 +386,7 @@ func (v Values) PathValue(ypath string) (interface{}, error) {
return nil, error(fmt.Errorf("yaml path string cannot be zero length")) return nil, error(fmt.Errorf("yaml path string cannot be zero length"))
} }
yps := strings.Split(ypath, ".") yps := strings.Split(ypath, ".")
if len(ypath) == 1 { if len(yps) == 1 {
// if exists must be root key not table // if exists must be root key not table
vals := v.AsMap() vals := v.AsMap()
k := yps[0] k := yps[0]

Loading…
Cancel
Save