terraform-provider-nutanix icon indicating copy to clipboard operation
terraform-provider-nutanix copied to clipboard

data nutanix_virtual_machine doesn't return ip_address attribute

Open fabricekrebs opened this issue 3 years ago • 1 comments

Nutanix Terraform provider 1.2.1

In the documentation (https://registry.terraform.io/providers/nutanix/nutanix/latest/docs/data-sources/virtual_machine), it is documented the ip_address attribute is returned. But this attribute isn't returned

nutanix@AUTOMATION-01:~/terraform/flow$ terraform apply -auto-approve ╷ │ Error: Unsupported attribute │ │ on main.tf line 254, in resource "local_file" "hosts": │ 254: vm-web = data.nutanix_virtual_machine.vm_web_metadata.ip_address │ │ This object has no argument, nested block, or exported attribute named "ip_address".

Workaround would be data.nutanix_virtual_machine.vm_web_metadata.nic_list[0].ip_endpoint_list[0].ip

fabricekrebs avatar Nov 19 '21 10:11 fabricekrebs

Hey this could be documentation issue. https://registry.terraform.io/providers/nutanix/nutanix/latest/docs/data-sources/virtual_machine#ip_address

premkarat avatar Feb 17 '22 10:02 premkarat