terraform/command/testdata/show-json
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
..
basic-create Standardise directory name for test data 2019-06-30 10:16:15 +02:00
basic-delete Standardise directory name for test data 2019-06-30 10:16:15 +02:00
basic-update Standardise directory name for test data 2019-06-30 10:16:15 +02:00
modules Standardise directory name for test data 2019-06-30 10:16:15 +02:00
nested-module-error fix show-json test to expect error from nested mod 2019-07-16 21:30:04 -04:00
nested-modules command/jsonplan: fix bug with nested modules output (#23092) 2019-10-17 11:33:04 -04:00