rename field to destroyPlan for consistency

This commit is contained in:
James Bardin 2022-05-27 10:58:28 -04:00
parent 6860596b68
commit 77d13808d5

View File

@ -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,
}
}