Skip to content

Conversation

@austinvalle
Copy link
Member

The goal of the current assertion for identity imports is to ensure the prior saved identity is the same as the identity after import/refresh (i.e. the planned identity). This PR switches the previous logic from doing an apply, to using the PlannedValues of the no-op plan produced by a successful plannable import.

Luckily, PlannedValues also happens to be a tfjson.StateValues, similar to the (tfjson.State).Values, so there is a small refactor to do the comparison 👍🏻

@austinvalle austinvalle added this to the v1.13.0 milestone May 13, 2025
@austinvalle austinvalle requested a review from a team as a code owner May 13, 2025 14:48
Copy link
Member Author

Choose a reason for hiding this comment

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

These changes are just to satisfy the linter since they are no longer used 👍🏻

@austinvalle austinvalle force-pushed the av/remove-import-apply branch from 49c30ba to b9190d4 Compare May 14, 2025 13:25
@austinvalle austinvalle merged commit 0060a87 into main May 16, 2025
39 checks passed
@austinvalle austinvalle deleted the av/remove-import-apply branch May 16, 2025 12:37
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 15, 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.

2 participants