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

Fix non-user facing bugs where appended diags are not returned in terraform provider #36833

Merged
merged 1 commit into from
Apr 2, 2025

Conversation

SarahFrench
Copy link
Member

These 'bugs' are not user facing, as any invalid managed resource/data resource/ephemeral resource are caught due to that resource type not being present in the provider schema (for example, here).

However this code is wrong- the Append method doesn't mutate the Diagnostics collection. The returned value always needs to be assigned back to where the collection is stored.

Target Release

1.13.x

CHANGELOG entry

  • This change is user-facing and I added a changelog entry.
  • This change is not user-facing.

@SarahFrench SarahFrench added the no-changelog-needed Add this to your PR if the change does not require a changelog entry label Apr 2, 2025
@SarahFrench SarahFrench marked this pull request as ready for review April 2, 2025 17:12
@SarahFrench SarahFrench requested a review from a team as a code owner April 2, 2025 17:12
@SarahFrench SarahFrench changed the title Fix bugs where appended diags are not returned Fix non-user facing bugs where appended diags are not returned in terraform provider Apr 2, 2025
@SarahFrench SarahFrench merged commit 79cdadd into main Apr 2, 2025
15 of 16 checks passed
@SarahFrench SarahFrench deleted the sarah/fix-appended-diags branch April 2, 2025 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog-needed Add this to your PR if the change does not require a changelog entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants