mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-23 23:50:12 -06:00
make outptut destroy nodes a temporaryValue
These never need to be pruned, except in the case of adding output changes to a targeted graph.
This commit is contained in:
parent
308eb5f47f
commit
504b49b1d3
@ -270,6 +270,11 @@ func (n *NodeDestroyableOutput) ModulePath() addrs.Module {
|
||||
return n.Addr.Module.Module()
|
||||
}
|
||||
|
||||
func (n *NodeDestroyableOutput) temporaryValue() bool {
|
||||
// this must always be evaluated if it is a root module output
|
||||
return !n.Addr.Module.IsRoot()
|
||||
}
|
||||
|
||||
// RemovableIfNotTargeted
|
||||
func (n *NodeDestroyableOutput) RemoveIfNotTargeted() bool {
|
||||
// We need to add this so that this node will be removed if
|
||||
|
Loading…
Reference in New Issue
Block a user