Merge pull request #24780 from hashicorp/pselle/walkEval

Add expansion transformer to eval graph
This commit is contained in:
Pam Selle 2020-04-27 15:39:15 -04:00 committed by GitHub
commit 5956276590
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -89,6 +89,13 @@ func (b *EvalGraphBuilder) Steps() []GraphTransformer {
// analyze the configuration to find references.
&AttachSchemaTransformer{Schemas: b.Schemas, Config: b.Config},
// Create expansion nodes for all of the module calls. This must
// come after all other transformers that create nodes representing
// objects that can belong to modules.
&ModuleExpansionTransformer{
Config: b.Config,
},
// Connect so that the references are ready for targeting. We'll
// have to connect again later for providers and so on.
&ReferenceTransformer{},