hashicorp / hil

HIL is a small embedded language for string interpolations.
Mozilla Public License 2.0
396 stars 34 forks source link

Indexes may require further interpolation #27

Closed jbardin closed 8 years ago

jbardin commented 8 years ago

Functions nested in map indexes didn't have an argument stack, because the index node hadn't been visited. Make sure we call Accept on the index Key when it could be interpolated. We don't call it unconditionally, because list indexes are assumed not be be pre Eval'ed.

Fixes https://github.com/hashicorp/terraform/issues/9282

mitchellh commented 8 years ago

LGTM