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

allow json output to marshal ConfigModeAttr blocks #29522

Merged
merged 1 commit into from
Sep 7, 2021

Conversation

jbardin
Copy link
Member

@jbardin jbardin commented Sep 3, 2021

In order to marshal config blocks using ConfigModeAttr, we need to insert the fixup body to map hcl blocks to the attribute in the schema.

Serializing the configuration of dynamic blocks is something that will need to be handled separately, if at all, as they require more context than is available at the time of serialization.

Fixes #29022

In order to marshal config blocks using ConfigModeAttr, we need to
insert the fixup body to map hcl blocks to the attribute in the schema.
@jbardin jbardin requested a review from a team September 3, 2021 21:39
Copy link
Member

@alisdair alisdair left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a typo in the linked issue number? It doesn't seem relevant to this PR at first glance.

@jbardin
Copy link
Member Author

jbardin commented Sep 7, 2021

you're right @alisdair, fixed!

@jbardin jbardin merged commit 1ad0421 into main Sep 7, 2021
@jbardin jbardin deleted the jbardin/json-blocktoattr branch September 7, 2021 15:32
@github-actions
Copy link

github-actions bot commented Oct 8, 2021

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

terraform show -json omits data when nested blocks are used and SchemaConfigModeAttr is set
2 participants