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

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

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 requested a review from a team as a code owner October 8, 2024 22:42
@modular-magician modular-magician requested review from shuyama1 and removed request for a team October 8, 2024 22:42
@modular-magician modular-magician merged commit ed6b0b9 into GoogleCloudPlatform:main Oct 8, 2024
5 of 6 checks passed
@modular-magician modular-magician deleted the downstream-pr-2c219b6d3cf2720fde86ff8b1d65abca8752f7d8 branch November 18, 2024 04:06
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