This website requires JavaScript.
Explore
Help
Sign In
ResiLien
/
terraform
Watch
2
Star
0
Fork
You've already forked terraform
0
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
5522a799f5
terraform
/
command
/
testdata
/
show-json
/
nested-modules
/
modules
/
more-modules
/
main.tf
8 lines
104 B
Terraform
Raw
Normal View
History
Unescape
Escape
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 17:33:04 +02:00
variable
"
test_var
"
{
default
=
"
bar-var
"
}
resource
"
test_instance
"
"
test
"
{
ami
=
var
.
test_var
command/show (-json): fix panic if a moduleCall has a nil config In the unlikely event that a moduleCall has a nil config - for example, if a nested module call includes a variable with a typo in an attribute - continue gracefully.
2019-06-03 17:19:03 +02:00
}