mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
fix flatmap.Expand
flatmap.Expand was adding `%` as a value in nested maps. Removing that allows us properly expand objects other than a simple map.
This commit is contained in:
parent
64cd09d29a
commit
5b5e892d4b
@ -66,7 +66,10 @@ func expandMap(m map[string]string, prefix string) map[string]interface{} {
|
||||
continue
|
||||
}
|
||||
|
||||
// It contains a period, so it is a more complex structure
|
||||
// skip the map count value
|
||||
if key == "%" {
|
||||
continue
|
||||
}
|
||||
result[key] = Expand(m, k[:len(prefix)+len(key)])
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user