Skip to content

Commit

Permalink
feat(helm): Check len of correct slice
Browse files Browse the repository at this point in the history
  • Loading branch information
jascott1 committed Feb 11, 2017
1 parent 8ef733c commit faae1f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/chartutil/values.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit faae1f6

Please sign in to comment.