mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-28 01:41:48 -06:00
Add another comment for reference
This commit is contained in:
parent
1cec04b8a7
commit
ba60fd12ae
@ -43,6 +43,10 @@ func expandArray(m map[string]string, prefix string) []interface{} {
|
|||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// The Schema "Set" type stores its values in an array format, but using
|
||||||
|
// numeric hash values instead of ordinal keys. Take the set of keys
|
||||||
|
// regardless of value, and expand them in numeric order.
|
||||||
|
// See GH-11042 for more details.
|
||||||
keySet := map[int]bool{}
|
keySet := map[int]bool{}
|
||||||
for k := range m {
|
for k := range m {
|
||||||
if !strings.HasPrefix(k, prefix+".") {
|
if !strings.HasPrefix(k, prefix+".") {
|
||||||
|
Loading…
Reference in New Issue
Block a user