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:
James Bardin 2016-12-16 09:35:58 -05:00
parent 64cd09d29a
commit 5b5e892d4b
1 changed files with 4 additions and 1 deletions

View File

@ -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)])
}