-
Notifications
You must be signed in to change notification settings - Fork 315
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
keycloak_openid_client_permissions and keycloak_users_permissions require to explicitely define all scopes #586
Comments
Let me know if you would like me to split this into two issues! |
It appears that the main reason for this crash is actually related to a drift (in my case Perhaps if you give me tips on how I can implement a fix, I can issue a PR for it? |
So it looks like the only problem was with the After this change, when drift occurs in your configuration, the resource will remove itself from state, causing a following apply to recreate the |
Thank you very much for this quick reaction and the explaination. I had guessed on the nil pointer issue, but my lack of knowledge in Go was blocking me from making the fix. Once there is a new provider version, I can test it if you would like? |
Issue
A
keycloak_openid_client_permissions
without all the scopes defined leads to a crash at refreshSimilarly, a
keycloak_users_permissions
without all the scopes defined leads to a crash at refreshTraceback
(keycloak_openid_client_permissions)
(keycloak_users_permissions)
How to reproduce
Expected
A plan should be provided with no detected changes to
keycloak_openid_client_permissions.example
orkeycloak_users_permissions
Context
Terraform version: 1.0.4
Provider version: 3.3.0
Actual
The provider crashes with the traceback provided above
Workaround
Defining all the scopes (before any apply, state corrupted otherwise) solves the issue
(Hope my issue template is complete enough!)
The text was updated successfully, but these errors were encountered: