Skip to content

Conversation

@jbardin
Copy link
Member

@jbardin jbardin commented Jan 23, 2025

The order of operations was incorrect here, with the refresh happening after the plan was already created. Invert the calls so the updated state is reflected in the plan output.

We don't need to carry forward the defer response from refresh, since in the rare case that a read does need to be deferred, the PlanResourceChange call will return the same response.

Fixes #35568

Target Release

1.11.x

CHANGELOG entry

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

The order of operations was incorrect here, with the refresh happening
after the plan was already created. Invert the calls so the updated
state is reflected in the plan output.

We don't need to carry forward the defer response from refresh, since in
the rare case that a read does need to be deferred, the
PlanResourceChange call will return the same response.
@jbardin jbardin requested a review from a team as a code owner January 23, 2025 20:06
@jbardin jbardin changed the title resources must be refreshed before plan orphaned resources must be refreshed before plan Jan 23, 2025
@jbardin jbardin merged commit 3c57915 into main Jan 24, 2025
8 checks passed
@jbardin jbardin deleted the jbardin/refresh-orphan branch January 24, 2025 14:34
@github-actions
Copy link
Contributor

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 Feb 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Resource state not refreshed before destroy

2 participants