mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
rename field to destroyPlan for consistency
This commit is contained in:
parent
6860596b68
commit
77d13808d5
@ -21,7 +21,7 @@ type OutputTransformer struct {
|
||||
|
||||
// If this is a planned destroy, root outputs are still in the configuration
|
||||
// so we need to record that we wish to remove them
|
||||
Destroy bool
|
||||
destroyPlan bool
|
||||
|
||||
// Refresh-only mode means that any failing output preconditions are
|
||||
// reported as warnings rather than errors
|
||||
@ -66,7 +66,7 @@ func (t *OutputTransformer) transform(g *Graph, c *configs.Config) error {
|
||||
}
|
||||
}
|
||||
|
||||
destroy := t.Destroy
|
||||
destroy := t.destroyPlan
|
||||
if rootChange != nil {
|
||||
destroy = rootChange.Action == plans.Delete
|
||||
}
|
||||
@ -95,7 +95,7 @@ func (t *OutputTransformer) transform(g *Graph, c *configs.Config) error {
|
||||
Addr: addr,
|
||||
Module: c.Path,
|
||||
Config: o,
|
||||
Destroy: t.Destroy,
|
||||
Destroy: t.destroyPlan,
|
||||
RefreshOnly: t.RefreshOnly,
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user