Open openmsk opened 1 year ago
Hello. What you want in this issue is to improve the error message or to add the missing value throught terraform ?
hello, i would like terraform to report an error like the e-breuninger provider
Error: [POST /virtualization/virtual-machines/][400]
virtualization_virtual-machines_create default map[__all__:
[Invalid value for custom field 'vm_server_role': Invalid choice (ansibles).
Available choices are: 1c, analytics, ansible, apache-airflow, appnginx, artifactory, zookeeper]]
on .terraform/modules/test3_terraform.netbox/netbox.tf line 52, in resource "netbox_virtual_machine" "vm":
52: resource "netbox_virtual_machine" "vm" {
Summary
Version
Netbox version
Terraform version
Provider version
Issue details
Affected Data(s) / Resource(s)
Terraform Configuration Files
Terraform Output
Behaviors
Actual Behavior
Expected Behavior
If a custom field contains a choice of values, and a new value is specified in hcl, then the provider needs to report the response from the netbox.
Steps to Reproduce
terraform apply