plans fix

This commit is contained in:
James Bardin 2020-04-13 16:21:09 -04:00
parent 2490e6c84b
commit 323d9fb69f
1 changed files with 5 additions and 0 deletions

View File

@ -88,6 +88,11 @@ func (c *Changes) OutputValues(parent addrs.ModuleInstance, module addrs.ModuleC
var res []*OutputChangeSrc
for _, oc := range c.Outputs {
// we can't evaluate root module outputs
if oc.Addr.Module.Equal(addrs.RootModuleInstance) {
continue
}
changeMod, changeCall := oc.Addr.Module.Call()
// this does not reside on our parent instance path
if !changeMod.Equal(parent) {