You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When roles attribute is updated, resource should be recreated because parent type is defined as ForceNew.
Change of child attribute should have triggered resource recreation.
Alternatively, SDK should be consistent in not allowing to omit Update function if resource is not recreated on update, as it does for top-level resource attributes.
Actual Behavior
When roles attribute is updated, the update does not trigger resource recreation. Resource is updated instead.
Since Update function is missing, provider code was not invoked. Update fails with Error: doesn't support update. However, state is updated with new value for roles.
SDK version
Relevant provider source code
https://github.com/vmware/terraform-provider-nsxt
Terraform Configuration Files
Debug Output
https://gist.github.com/annakhm/60101ee4667f879d650a017b00418121
Expected Behavior
When
roles
attribute is updated, resource should be recreated because parent type is defined asForceNew
.Change of child attribute should have triggered resource recreation.
Alternatively, SDK should be consistent in not allowing to omit
Update
function if resource is not recreated on update, as it does for top-level resource attributes.Actual Behavior
When
roles
attribute is updated, the update does not trigger resource recreation. Resource is updated instead.Since
Update
function is missing, provider code was not invoked. Update fails withError: doesn't support update
. However, state is updated with new value forroles
.Steps to Reproduce
References
hashicorp/terraform#34691
The text was updated successfully, but these errors were encountered: