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

Backport of don't panic with a null list block value in config into v1.3 #32457

Merged

Conversation

teamterraform
Copy link
Contributor

Backport

This PR is auto-generated from #32428 to be assessed for backporting due to the inclusion of the label 1.3-backport.

The below text is copied from the body of the original PR.


Using ignore_changes with a list block, where the provider returned an invalid null value for that block, can result in a panic when validating the plan.

Future releases may prevent providers from storing a null block in state, however we can avoid the panic for now. Only the NestingList case needs to be handled, because legacy providers only have list and set blocks, and the set case does not use the config value.

The null case should be avoided entirely by #32424, but this is a minimal backport to patch a crash in the current minor release, and handle pre-existing state with null values.

Fixes #31536

@teamterraform teamterraform force-pushed the backport/jbardin/ignore-changes-panic/totally-sure-feline branch from 48f13be to 0a2c396 Compare January 4, 2023 14:21
@jbardin jbardin merged commit cc2d8bb into v1.3 Jan 4, 2023
@jbardin jbardin deleted the backport/jbardin/ignore-changes-panic/totally-sure-feline branch January 4, 2023 14:33
@github-actions
Copy link

github-actions bot commented Jan 4, 2023

Reminder for the merging maintainer: if this is a user-visible change, please update the changelog on the appropriate release branch.

@github-actions
Copy link

github-actions bot commented Feb 4, 2023

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 Feb 4, 2023
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.

None yet

2 participants