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

resource/cloudflare_ruleset: fix state handler #1183

Merged
merged 1 commit into from
Sep 10, 2021

Conversation

jacobbednarz
Copy link
Member

While looking into upgrading to Terraform SDK v2, I found that the state file
was throwing some errors when trying to save rules. It turns out that SDK v1
was more forgiving with the types when it came to flattening lists however SDK
v2 is much stricter causing the failures. This fixes issue by correctly
building the state struct and flattening out some of the nested structures.

While looking into upgrading to Terraform SDK v2, I found that the state file
was throwing some errors when trying to save `rules`. It turns out that SDK v1
was more forgiving with the types when it came to flattening lists however SDK
v2 is much stricter causing the failures. This fixes issue by correctly
building the state struct and flattening out some of the nested structures.
@jacobbednarz jacobbednarz merged commit 21ff96a into master Sep 10, 2021
@jacobbednarz jacobbednarz deleted the fix-ruleset-state-handler branch September 10, 2021 04:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant