variable ModulePath must return configured path

The parent path case is handled ReferenceOutside
This commit is contained in:
James Bardin 2020-06-06 21:38:08 -04:00
parent 9722686b62
commit 242a916a17
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ func (n *nodeModuleVariable) Path() addrs.ModuleInstance {
// GraphNodeModulePath // GraphNodeModulePath
func (n *nodeModuleVariable) ModulePath() addrs.Module { func (n *nodeModuleVariable) ModulePath() addrs.Module {
return n.Addr.Module.Parent().Module() return n.Addr.Module.Module()
} }
// RemovableIfNotTargeted // RemovableIfNotTargeted