Skip to content

pubsub: fix permadiff with configuring an empty retry_policy. #8365

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

Conversation

modular-magician
Copy link
Collaborator

Fixes hashicorp/terraform-provider-google#18016

The permadiff arises when users specify an empty retry policy as retry_policy: {} in their config, but the empty value doesn't get sent to the API and the API subsequently doesn't return a retry_policy in the response. By setting send_empty_value: true on the retry_policy property, we ensure that the API recognizes the user-configured value.

Similar fixes for other resource properties will be investigated and sent in separate PRs.

Release Note Template for Downstream PRs (will be copied)

pubsub: fix permadiff with configuring an empty `retry_policy`.

Derived from GoogleCloudPlatform/magic-modules#11834

[upstream:2c219b6d3cf2720fde86ff8b1d65abca8752f7d8]

Signed-off-by: Modular Magician <[email protected]>
@modular-magician modular-magician merged commit f658965 into hashicorp:main Oct 8, 2024
4 checks passed
@modular-magician modular-magician deleted the downstream-pr-2c219b6d3cf2720fde86ff8b1d65abca8752f7d8 branch November 16, 2024 02:17
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.

google_pubsub_subscription TF changes at every plan
1 participant