terraform/command/testdata/show-json/nested-modules/modules
Kristin Laemmert 4b10a6e1bf
command/jsonplan: fix bug with nested modules output (#23092)
`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.
2019-10-17 11:33:04 -04:00
..
more-modules command/jsonplan: fix bug with nested modules output (#23092) 2019-10-17 11:33:04 -04:00
main.tf Standardise directory name for test data 2019-06-30 10:16:15 +02:00