Commit faae1f68 authored by Justin Scott's avatar Justin Scott

feat(helm): Check len of correct slice

parent 8ef733ca
......@@ -386,7 +386,7 @@ func (v Values) PathValue(ypath string) (interface{}, error) {
return nil, error(fmt.Errorf("yaml path string cannot be zero length"))
}
yps := strings.Split(ypath, ".")
if len(ypath) == 1 {
if len(yps) == 1 {
// if exists must be root key not table
vals := v.AsMap()
k := yps[0]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment