module variables can't be referenced as a module
This commit is contained in:
parent
02167dcfe4
commit
d6ca469124
|
@ -95,11 +95,7 @@ func (n *nodeExpandModuleVariable) ReferenceOutside() (selfPath, referencePath a
|
||||||
|
|
||||||
// GraphNodeReferenceable
|
// GraphNodeReferenceable
|
||||||
func (n *nodeExpandModuleVariable) ReferenceableAddrs() []addrs.Referenceable {
|
func (n *nodeExpandModuleVariable) ReferenceableAddrs() []addrs.Referenceable {
|
||||||
// FIXME: References for module variables probably need to be thought out a bit more
|
return []addrs.Referenceable{n.Addr}
|
||||||
// Otherwise, we can reference the output via the address itself, or the
|
|
||||||
// module call
|
|
||||||
_, call := n.Module.Call()
|
|
||||||
return []addrs.Referenceable{n.Addr, call}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// RemovableIfNotTargeted
|
// RemovableIfNotTargeted
|
||||||
|
|
Loading…
Reference in New Issue