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

tfsdk: Added automatic RemoveResource() call after Resource type Delete method execution #301

Merged
merged 2 commits into from
Apr 22, 2022

Conversation

bflad
Copy link
Contributor

@bflad bflad commented Apr 22, 2022

Closes #100

Due to provider developer feedback, the framework will now perform automatic removal of state on successful (no error diagnostic) Resource type Delete executions. This matches the behavior of terraform-plugin-sdk.

Providers can still explicitly call (State).RemoveResource() or leave existing implementations, however it is extraneous for most Delete logic now.

…te method execution

Reference: #100

Due to provider developer feedback, the framework will now perform automatic removal of state on successful (no error diagnostic) `Resource` type `Delete` executions. This matches the behavior of terraform-plugin-sdk.

Providers can still explicitly call `(State).RemoveResource()` or leave existing implementations, however it is extraneous for most `Delete` logic now.
@bflad bflad added the enhancement New feature or request label Apr 22, 2022
@bflad bflad added this to the v0.7.0 milestone Apr 22, 2022
@bflad bflad requested a review from a team as a code owner April 22, 2022 19:43
Copy link
Contributor

@bookshelfdave bookshelfdave left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that was quick :-) lgtm!

@bflad bflad merged commit d8e493d into main Apr 22, 2022
@bflad bflad deleted the bflad-automatic-RemoveResource branch April 22, 2022 20:53
@github-actions
Copy link

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 contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider Automatically Calling State.RemoveResource() After Successful Resource Deletion
2 participants