Skip to content

Commit

Permalink
Fix for hcl (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
mef13 authored Feb 27, 2021
1 parent 28582d5 commit dd854f9
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion aconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,18 @@ func (l *Loader) find(actualFields map[string]interface{}, name string) (map[str
actualFields[subName+"."+fmt.Sprint(k)] = v
}
delete(actualFields, subName)

case []map[string]interface{}:
for _, m := range val {
for k, v := range m {
actualFields[subName+"."+k] = v
}
}
case []map[interface{}]interface{}:
for _, m := range val {
for k, v := range m {
actualFields[subName+"."+fmt.Sprint(k)] = v
}
}
}
return actualFields, true
}
Expand Down

0 comments on commit dd854f9

Please sign in to comment.