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 #2175 | deadlock from orphaned okta_user_admin_roles #2176

Merged
merged 2 commits into from
Jan 17, 2025

Conversation

exitcode0
Copy link
Contributor

Attempting to fix #2175

This may not be the most correct solution 🤷
Please let me know if anything needs tweaking 🙂

If user targeted by `okta_user_admin_roles` was deleted, the resource
could not be removed without CLI intervention as the 404 error will
cause Terraform plan to fail

by suppressing the 404 here the user can successfully run terraform apply
to remove the resource from both the state file and configuration

unfortunately as a result we no longer guard against 404 errors and
users may attempt to re-create invalid admin role assignments, however
in my opinion the pros outweight the cons here as the user
does not need to venture outside version control to restore
deployability
@duytiennguyen-okta duytiennguyen-okta merged commit 177dc1b into okta:master Jan 17, 2025
1 check passed
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.

Orphaned okta_user_admin_roles causes deadlock
2 participants