mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
make NodeModuleRemoved a GraphNodeReferencer
This was the node can be automatically connected by the ReferenceTransformer.
This commit is contained in:
parent
14cc654b16
commit
5915d883d2
@ -31,6 +31,14 @@ func (n *NodeModuleRemoved) EvalTree() EvalNode {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (n *NodeModuleRemoved) ReferenceGlobal() bool {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
func (n *NodeModuleRemoved) References() []string {
|
||||||
|
return []string{modulePrefixStr(n.PathValue)}
|
||||||
|
}
|
||||||
|
|
||||||
// EvalDeleteModule is an EvalNode implementation that removes an empty module
|
// EvalDeleteModule is an EvalNode implementation that removes an empty module
|
||||||
// entry from the state.
|
// entry from the state.
|
||||||
type EvalDeleteModule struct {
|
type EvalDeleteModule struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user