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

Pass RateLimitCorrelate to flattenRateLimitCorrelate #204

Merged

Conversation

jacobbednarz
Copy link
Member

@jacobbednarz jacobbednarz commented Jan 31, 2019

During an import of cloudflare_rate_limit resources, the NAT
correlation value isn't getting set however subsequent runs are.

Looking into this issue, I can see that the d.Set("correlate") isn't
calling the flattenRateLimitCorrelate with the required argument of a
RateLimitCorrelate type. I cannot see how this ever worked (even on
subsequent runs) but passing in the argument has addressed the issue
with importing.

Fixes #199

During an import of `cloudflare_rate_limit` resources, the NAT
correlation value isn't getting set however subsequent runs are.

Looking into this issue, I can see that the `d.Set("correlate")` aren't
calling the `flattenRateLimitCorrelate` with the required argument of a
`RateLimitCorrelate` type. I cannot see how this ever worked (even on
subsequent runs) but passing in the argument has addressed the issue
with importing.

Fixes #199
@jacobbednarz
Copy link
Member Author

@patryk You've got more Golang chops than I do. Would you mind making sure I haven't missed something silly here or covering up an underlying bug?

@jacobbednarz jacobbednarz merged commit 4d3de2a into cloudflare:master Feb 24, 2019
@jacobbednarz jacobbednarz deleted the allow-correlate-to-import branch February 24, 2019 22:12
Copy link

@radeksimko radeksimko left a comment

Choose a reason for hiding this comment

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

This LGTM.

@radeksimko
Copy link

@jacobbednarz I've done it for this PR (and your other one), but will you please make sure that all user-facing PRs are mentioned in the Changelog after merging? 🙏

Thanks. 😉

@jacobbednarz
Copy link
Member Author

jacobbednarz commented Feb 25, 2019 via email

@radeksimko
Copy link

It is somewhere on our roadmap to look into (semi-)automating this problem for all providers, but we're not there yet, unfortunately.

boekkooi-lengoo pushed a commit to boekkooi-lengoo/terraform-provider-cloudflare that referenced this pull request Feb 28, 2022
updated LoadBalancer for SteeringPolicy support
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants