-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
alpha1: DiffSuppressFunc/StateFunc's are ignored in some circumstances #19211
Comments
Thanks for reporting this, @tombuildsstuff! Some notes as context for when we look into this deeper: These Since the SDK logic itself has not been changed significantly, it is more likely that this is an oversight in the code that interfaces the existing provider SDK code with the new protocol. My initial theory is that the provider SDK code responds to |
For future reference: My theory as to what was going wrong here was close, but it turns out that we were correctly applying the diff to the prior state in most cases. The bug was that if the provider returned an entirely empty diff then we were preferring the diff that was produced by the logic in core rather than just using the prior state exactly as-is. As a result, this issue only cropped up in cases where all of the proposed changes get undone by This may have a common root cause with #19151. We'll test that again shortly. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Terraform Version
Terraform Configuration Files
Debug Output
n/a
Crash Output
n/a
Expected Behavior
Actual Behavior
Plan shows the following diff:
Steps to Reproduce
terraform init
terraform apply
terraform plan
Additional Context
References
n/a
The text was updated successfully, but these errors were encountered: