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.
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