remove last use of the apply graph Destroy flag!
The apply graph builder no longer uses the destroy flag, which is not always known since the destroy flag is not stored in the plan file.
This commit is contained in:
parent
ff21cc3c8d
commit
0f5bf21983
|
@ -277,7 +277,6 @@ func (c *Context) Graph(typ GraphType, opts *ContextGraphOpts) (*Graph, tfdiags.
|
||||||
Components: c.components,
|
Components: c.components,
|
||||||
Schemas: c.schemas,
|
Schemas: c.schemas,
|
||||||
Targets: c.targets,
|
Targets: c.targets,
|
||||||
Destroy: c.destroy,
|
|
||||||
Validate: opts.Validate,
|
Validate: opts.Validate,
|
||||||
}).Build(addrs.RootModuleInstance)
|
}).Build(addrs.RootModuleInstance)
|
||||||
|
|
||||||
|
|
|
@ -40,9 +40,6 @@ type ApplyGraphBuilder struct {
|
||||||
// outputs should go into the diff so that this is unnecessary.
|
// outputs should go into the diff so that this is unnecessary.
|
||||||
Targets []addrs.Targetable
|
Targets []addrs.Targetable
|
||||||
|
|
||||||
// Destroy, if true, represents a pure destroy operation
|
|
||||||
Destroy bool
|
|
||||||
|
|
||||||
// Validate will do structural validation of the graph.
|
// Validate will do structural validation of the graph.
|
||||||
Validate bool
|
Validate bool
|
||||||
}
|
}
|
||||||
|
|
|
@ -468,7 +468,6 @@ func TestApplyGraphBuilder_provisionerDestroy(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
b := &ApplyGraphBuilder{
|
b := &ApplyGraphBuilder{
|
||||||
Destroy: true,
|
|
||||||
Config: testModule(t, "graph-builder-apply-provisioner"),
|
Config: testModule(t, "graph-builder-apply-provisioner"),
|
||||||
Changes: changes,
|
Changes: changes,
|
||||||
Components: simpleMockComponentFactory(),
|
Components: simpleMockComponentFactory(),
|
||||||
|
|
Loading…
Reference in New Issue