Skip to content

Commit

Permalink
helmfile#190-FetchInteger: Fix
Browse files Browse the repository at this point in the history
Signed-off-by: Gianluca Artioli <[email protected]>
  • Loading branch information
Gianluca Artioli committed Aug 8, 2024
1 parent 819116b commit 4589846
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vals.go
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,10 @@ func (r *Runtime) prepare() (*expansion.ExpandRegexMatch, error) {
for i, k := range keys {
newobj := map[string]interface{}{}
switch t := obj[k].(type) {
case int:
return fmt.Sprint(t), nil
case bool:
return fmt.Sprint(t), nil
case string:
if i != len(keys)-1 {
return "", fmt.Errorf("unexpected type of value for key at %d=%s in %v: expected map[string]interface{}, got %v(%T)", i, k, keys, t, t)
Expand Down

0 comments on commit 4589846

Please sign in to comment.