nutanix / terraform-provider-nutanix

Terraform Nutanix Provider
https://www.terraform.io/docs/providers/nutanix/
Mozilla Public License 2.0
93 stars 112 forks source link

Error message missing #649

Open Golgautier opened 8 months ago

Golgautier commented 8 months ago

When I try to deploy a new VM with insufficient disk size, warning message is not displayed with plugin 1.9.4, it works well with 1.3.0

1.3.0 output

nutanix_virtual_machine.machine: Creating...
╷
│ Error: error: {
│   "api_version": "3.1",
│   "code": 400,
│   "message_list": [
│     {
│       "message": "Requested image size 53183774720 is less than actual size 53687091200",
│       "reason": "INVALID_ARGUMENT"
│     }
│   ],
│   "state": "ERROR"
│ }
│
│   with nutanix_virtual_machine.machine,
│   on main.tf line 13, in resource "nutanix_virtual_machine" "machine":
│   13: resource "nutanix_virtual_machine" "machine" {
│
╵

1.9.4 output

nutanix_virtual_machine.machine: Creating...
╷
│ Warning: Disabled Providers: foundation, ndb. Please provide required fields in provider configuration to enable them. Refer docs.
│
│   with provider["registry.terraform.io/nutanix/nutanix"],
│   on provider.tf line 1, in provider "nutanix":
│    1: provider "nutanix" {
│
╵
╷
│ Error: bad Request
│
│   with nutanix_virtual_machine.machine,
│   on main.tf line 13, in resource "nutanix_virtual_machine" "machine":
│   13: resource "nutanix_virtual_machine" "machine" {
│
╵

Nutanix Cluster Information

Please provide the version of:

Terraform Version

1.9.4