core: attach provisioner schemas in subgraphs

DynamicExpand also needs to add the provisioner schemas to make sure all
references are found in the subgraph.
This commit is contained in:
James Bardin 2018-06-01 18:04:28 -04:00 committed by Martin Atkins
parent 059de66fcc
commit 6eb897e293
1 changed files with 2 additions and 0 deletions

View File

@ -45,6 +45,7 @@ func (n *NodePlannableResource) DynamicExpand(ctx EvalContext) (*Graph, error) {
a.Config = n.Config
a.ResolvedProvider = n.ResolvedProvider
a.Schema = n.Schema
a.ProvisionerSchemas = n.ProvisionerSchemas
return &NodePlannableResourceInstance{
NodeAbstractResourceInstance: a,
@ -57,6 +58,7 @@ func (n *NodePlannableResource) DynamicExpand(ctx EvalContext) (*Graph, error) {
a.Config = n.Config
a.ResolvedProvider = n.ResolvedProvider
a.Schema = n.Schema
a.ProvisionerSchemas = n.ProvisionerSchemas
return &NodePlannableResourceInstanceOrphan{
NodeAbstractResourceInstance: a,