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
|
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)])
|
result[key] = Expand(m, k[:len(prefix)+len(key)])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue