-
Notifications
You must be signed in to change notification settings - Fork 97
nil TypeMap permadiff #221
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
Comments
I attempted to massage the plan to match
But got the following error on plan
|
Would you be able to show how the attribute is being set into state (if it is) during |
The permissions go through a bit of an expansion from the API response but the logic is the following:
I am certain State setting code is very simple within Read
|
Confirmed,
|
This may be similar to #201. Does explicitly setting the value if len(permissions) > 0 {
data.Permissions = types.Map{ElemType: types.BoolType, Elems: permissions}
} else {
data.Permissions = types.Map{ElemType: types.BoolType, Null: true}
} Since It might be possible to first manually passthrough the |
It may also be possible to use |
Hey again @appilon 👋 Did you find a resolution for this situation or does either of the above help? |
@bflad I will prioritize revisiting this this week. |
I encountered exactly the same problem today. // assuming someone generates a empty map
Label={}
// or not set at all
Label=null Technically i dont care, both will always be empty for me as it is not computed. |
We're discussing a potential path forward here over in #447 with potentially modifying the zero-values of the @project0 if you didn't try it already, I think you may be able to do something like you propose by setting the map attribute as |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Module version
Relevant provider source code
Terraform Configuration Files
Expected Behavior
After applying the initial config, I expect a subsequent plan to be noop.
Actual Behavior
Terraform seems to think the current state has an empty set (but not nil) which causes a diff with the plan (nil).
Steps to Reproduce
References
The text was updated successfully, but these errors were encountered: