mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-30 10:47:14 -06:00
4b10a6e1bf
`marshalPlannedValues` builds a map of modules to their children in order to output the resource changes in a tree. The map was built from the list of resource changes. However if a module had no resources itself, and only called another module (a very normal case), that module would not get added to the map causing none of its children to be output in `planned_values`. This PR adds a walk up through a given module's ancestors to ensure that each module, even those without resources, would be added. |
||
---|---|---|
.. | ||
doc.go | ||
module.go | ||
plan_test.go | ||
plan.go | ||
resource.go | ||
values_test.go | ||
values.go |