From 6eb897e293881469eafa737af693087ad0591ecb Mon Sep 17 00:00:00 2001 From: James Bardin Date: Fri, 1 Jun 2018 18:04:28 -0400 Subject: [PATCH] core: attach provisioner schemas in subgraphs DynamicExpand also needs to add the provisioner schemas to make sure all references are found in the subgraph. --- terraform/node_resource_plan.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/terraform/node_resource_plan.go b/terraform/node_resource_plan.go index 8884a918e4..2087944a65 100644 --- a/terraform/node_resource_plan.go +++ b/terraform/node_resource_plan.go @@ -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,