Skip to content

Conversation

@browdues
Copy link
Contributor

@browdues browdues commented Jan 27, 2026

Problem:

After a destroy/re-apply cycle, some dependent resources fail to resolve references to their parent resources.

This affects cloud providers like Azure where native_id is deterministic (based on subscription/resource-group/name)

Fix:

  1. Track whether KSUID was provided vs generated in storeResource
  2. Only adopt discovered KSUID if incoming resource didn't already have one assigned
  3. Check if incoming KSUID matches existing KSUID before returning early; only skip insert when BOTH data AND KSUID are identical

@browdues browdues marked this pull request as draft January 28, 2026 00:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants