Description
Describe the bug
When adding the power_state = "OFF" setting to a nutanix_virtual_machine resource, the error "Error: "power_state": this field cannot be set" is given when trying to apply.
Expected behavior
The expected behavior would be one of:
If power_state is present, force that power_state on the VM
If power_state is not present, when creating the VM set power_state to OFF, when not creating, leave the power_state at it's current value.
Logs
Here is the snippet from the trace log:
2020/03/10 14:38:15 [WARN] : eval: *terraform.EvalValidateResource, non-fatal err: "power_state": this field cannot be set
2020/03/10 14:38:15 [ERROR] : eval: *terraform.EvalSequence, err: "power_state": this field cannot be set
Versions (please complete the following information):
- macOS 10.14.6
- Terraform v0.12.21
- Nutanix Cluster (Prism Element / AOS) 5.11.2.1 - Pro License
- Nutanix Prism Central 5.11.2.1
- Terraform provider version (using posted RC1? Compiling yourself? v1.0.2 (version downloaded from terraform init)
Additional context
Add any other context about the problem here.