module variables can't be referenced as a module

This commit is contained in:
James Bardin 2020-06-15 20:46:03 -04:00
parent 02167dcfe4
commit d6ca469124
1 changed files with 1 additions and 5 deletions

View File

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