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.
pull/10787/head
James Bardin 10 years ago
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…
Cancel
Save