-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
fix: Add nil checks to fix perpetual diff of rule arg for aws_ce_cost_category #38449
fix: Add nil checks to fix perpetual diff of rule arg for aws_ce_cost_category #38449
Conversation
Thank you for your contribution! 🚀 Please note that typically Go dependency changes are handled in this repository by dependabot or the maintainers. This is to prevent pull request merge conflicts and further delay reviews of contributions. Remove any changes to the Additional details:
|
Community NoteVoting for Prioritization
For Submitters
|
e5835b2
to
64ee1f3
Compare
Thank you for your contribution! 🚀 Please note that typically Go dependency changes are handled in this repository by dependabot or the maintainers. This is to prevent pull request merge conflicts and further delay reviews of contributions. Remove any changes to the Additional details:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🎉
% make testacc PKG=ce TESTS=TestAccCECostCategory_
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.5 test ./internal/service/ce/... -v -count 1 -parallel 20 -run='TestAccCECostCategory_' -timeout 360m
--- PASS: TestAccCECostCategory_notWithAnd (13.78s)
--- PASS: TestAccCECostCategory_disappears (17.33s)
--- PASS: TestAccCECostCategory_basic (18.43s)
--- PASS: TestAccCECostCategory_splitCharge (21.03s)
--- PASS: TestAccCECostCategory_effectiveStart (22.26s)
--- PASS: TestAccCECostCategory_complete (23.08s)
--- PASS: TestAccCECostCategory_tags (26.58s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/ce 32.334s
Thanks for your contribution, @acwwat! 👍 |
This functionality has been released in v5.60.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
This PR is to fix perpetual diff with the
rule
argument when updating aaws_ce_cost_category
resource, because of a subtle state differences with the nestedrule
argument being set during flattening regardless of whether the API response value is set. For good measure, I added similar checks for other optional values in all flatten functions where appropriate.Relations
Closes #38215
References
n/a
Output from Acceptance Testing