You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cube2222 opened this issue
Dec 21, 2020
· 4 comments
Labels
bugconfirmeda Terraform Core team member has reproduced this issuev0.13Issues (primarily bugs) reported against v0.13 releasesv0.14Issues (primarily bugs) reported against v0.14 releases
Let's say you have 3 modules, in the examples that's the root module, the resourceless module, and the lost module.
The resourceless module is a child of the root module.
The lost module is a child of the resourceless module.
The caveat though is that the resourceless module doesn't create any resources itself, it only creates the lost module.
This will break the recurrence in jsonstate/state.go and will never print the contents of the resourceless and lost modules.
I have a simple fix ready, including a regression test, so will create a PR shortly.
Terraform Version
All 0.14.x versions and head of master, the problematic code hasn't been touched for a while though, so it should be reproducible in earlier versions too.
cube2222
changed the title
terraform show doesn't properly output child_modules in certain circumstances
terraform show doesn't properly output child_modules in certain circumstances - with ready fix
Dec 21, 2020
danieldreier
added
confirmed
a Terraform Core team member has reproduced this issue
v0.13
Issues (primarily bugs) reported against v0.13 releases
v0.14
Issues (primarily bugs) reported against v0.14 releases
and removed
new
new issue not yet triaged
labels
Dec 22, 2020
@cube2222 thank you for the report and clear reproduction case! I've reproduced this on 0.14.2 and 0.13.5. Most of the team of off for the holidays, and this looks real but non-urgent to me, so be aware that it probably won't get much more attention until January. Please let me know if I've misunderstood the issue and and it's causing an urgent incident for you.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
ghost
locked as resolved and limited conversation to collaborators
Feb 11, 2021
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
bugconfirmeda Terraform Core team member has reproduced this issuev0.13Issues (primarily bugs) reported against v0.13 releasesv0.14Issues (primarily bugs) reported against v0.14 releases
Hey, I'll try to keep it short.
Let's say you have 3 modules, in the examples that's the
root
module, theresourceless
module, and thelost
module.The
resourceless
module is a child of theroot
module.The
lost
module is a child of theresourceless
module.The caveat though is that the
resourceless
module doesn't create any resources itself, it only creates thelost
module.This will break the recurrence in
jsonstate/state.go
and will never print the contents of theresourceless
andlost
modules.I have a simple fix ready, including a regression test, so will create a PR shortly.
Terraform Version
All 0.14.x versions and head of master, the problematic code hasn't been touched for a while though, so it should be reproducible in earlier versions too.
Terraform Configuration Files
Expected Behavior
Running
terraform show -json
should properly print all the modules in achild_modules
hierarchy. Like this (this is the output with my fix):Actual Behavior
Steps to Reproduce
Just apply the above terraform files and run
terraform show -json
The text was updated successfully, but these errors were encountered: