Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

command/show (plan -json): fix panic #21541

merged 2 commits into from Jun 3, 2019


Copy link

mildwonkey commented May 31, 2019

We were somewhat inconsistent with return values in "after_unknown". This commit fixes that by removing some redundant (and panicky) code.

Fixes #21415 (via #21448)

With bonus fixes: typo, embarrassing debug code.

afterUnknown should return only bools, not values.
@mildwonkey mildwonkey requested a review from hashicorp/terraform-core May 31, 2019
the plan output was somewhat inconsistent with return values for
"after_unknown". This strives to fix that. If all "after" values are
known, return an empty object instead of iterating over values.

Also fixing some typos and general copypasta.
@mildwonkey mildwonkey force-pushed the mildwonkey/b-show-plan-json branch from 4dbd1d4 to 6106c62 May 31, 2019
pselle approved these changes Jun 2, 2019
@mildwonkey mildwonkey merged commit 65fc037 into master Jun 3, 2019
2 checks passed
2 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
license/cla Contributor License Agreement is signed.
@mildwonkey mildwonkey deleted the mildwonkey/b-show-plan-json branch Jun 3, 2019

This comment has been minimized.

Copy link

hashibot bot commented Jul 25, 2019

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.

@hashibot hashibot bot locked and limited conversation to collaborators Jul 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet
2 participants
You can’t perform that action at this time.