terraform-provider-nsxt
terraform-provider-nsxt copied to clipboard
nsxt_policy_project short_id is not marked ForceNew
Describe the bug
The short_id field of the nsxt_policy_project is not marked with ForceNew. This causes an error to be returned by Terraform if you attempt to perform an apply with a change to this field.
Reproduction steps
- Attempt to change the short_id of an existing nsxt_policy_project
Expected behavior
A plan should show that the nsxt_policy_project needs to be recreated in order to change the short_id. An apply should not throw an error message.
Additional context
╷
│ Error: Failed to update Project compute.services: short_id once set cannot be modified. (code 524234)
│
│ with module.compute_services_project.nsxt_policy_project.main,
│ on ../modules/miserver_nsx_project/main.tf line 1, in resource "nsxt_policy_project" "main":
│ 1: resource "nsxt_policy_project" "main" {
│
╵
Releasing state lock. This may take a few moments...