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:
parent
059de66fcc
commit
6eb897e293
|
@ -45,6 +45,7 @@ func (n *NodePlannableResource) DynamicExpand(ctx EvalContext) (*Graph, error) {
|
||||||
a.Config = n.Config
|
a.Config = n.Config
|
||||||
a.ResolvedProvider = n.ResolvedProvider
|
a.ResolvedProvider = n.ResolvedProvider
|
||||||
a.Schema = n.Schema
|
a.Schema = n.Schema
|
||||||
|
a.ProvisionerSchemas = n.ProvisionerSchemas
|
||||||
|
|
||||||
return &NodePlannableResourceInstance{
|
return &NodePlannableResourceInstance{
|
||||||
NodeAbstractResourceInstance: a,
|
NodeAbstractResourceInstance: a,
|
||||||
|
@ -57,6 +58,7 @@ func (n *NodePlannableResource) DynamicExpand(ctx EvalContext) (*Graph, error) {
|
||||||
a.Config = n.Config
|
a.Config = n.Config
|
||||||
a.ResolvedProvider = n.ResolvedProvider
|
a.ResolvedProvider = n.ResolvedProvider
|
||||||
a.Schema = n.Schema
|
a.Schema = n.Schema
|
||||||
|
a.ProvisionerSchemas = n.ProvisionerSchemas
|
||||||
|
|
||||||
return &NodePlannableResourceInstanceOrphan{
|
return &NodePlannableResourceInstanceOrphan{
|
||||||
NodeAbstractResourceInstance: a,
|
NodeAbstractResourceInstance: a,
|
||||||
|
|
Loading…
Reference in New Issue