This website requires JavaScript.
Explore
Help
Register
Sign In
upstream
/
terraform
Watch
1
Star
0
Fork
You've already forked terraform
0
mirror of
https://github.com/hashicorp/terraform.git
synced
2026-04-21 06:08:16 -04:00
Code
Issues
Projects
Releases
Packages
Wiki
Activity
Actions
11
ccf19fbf5e
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 11:33:04 -04: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 11:19:03 -04:00
}
Reference in a new issue
Copy permalink