Describe the bug
Cannot list ip addresses of when creating multiple virtual machine resources
Expected behavior
Should be able to list the ip addresses of all the vm resources using the following syntax
output "ip" { value = "${join(",",nutanix_virtual_machine.my-machine.*.nutanix_virtual_machine.deployment.*.nic_list_status.0.ip_endpoint_list.0.ip)}" }
If the above interpolation is not possible can we please expose the ip_address attribute from the resources that were created. According to this doc ip_address should be available on a virtual machine data source but trying to access it, fails with
Resource 'data.nutanix_virtual_machine.ips1' does not have attribute 'ip_address' for variable 'data.nutanix_virtual_machine.ips1.ip_address'
Logs
Trying to list the output getting the following error,
nutanix_virtual_machine.deployment’ does not have attribute ‘nic_list_status.0.ip_endpoint_list.0.ip
trying to access ip_address in vm data_source gets following error
Resource 'data.nutanix_virtual_machine.ips1' does not have attribute 'ip_address' for variable 'data.nutanix_virtual_machine.ips1.ip_address'
Versions (please complete the following information):
- OS - OSX mojave
- Terraform - 0.11.3
- Nutanix Cluster - 5.10.2
- Nutanix Prism Central - 5.10.2
- 1.0.1
Additional context
Looks like we can't display the ip address when we have multiple nested lists/maps. Can we get the ip_address exposed from the created vm to access?
Describe the bug
Cannot list ip addresses of when creating multiple virtual machine resources
Expected behavior
Should be able to list the ip addresses of all the vm resources using the following syntax
output "ip" { value = "${join(",",nutanix_virtual_machine.my-machine.*.nutanix_virtual_machine.deployment.*.nic_list_status.0.ip_endpoint_list.0.ip)}" }If the above interpolation is not possible can we please expose the ip_address attribute from the resources that were created. According to this doc ip_address should be available on a virtual machine data source but trying to access it, fails with
Resource 'data.nutanix_virtual_machine.ips1' does not have attribute 'ip_address' for variable 'data.nutanix_virtual_machine.ips1.ip_address'Logs
Trying to list the output getting the following error,
nutanix_virtual_machine.deployment’ does not have attribute ‘nic_list_status.0.ip_endpoint_list.0.iptrying to access ip_address in vm data_source gets following error
Resource 'data.nutanix_virtual_machine.ips1' does not have attribute 'ip_address' for variable 'data.nutanix_virtual_machine.ips1.ip_address'Versions (please complete the following information):
Additional context
Looks like we can't display the ip address when we have multiple nested lists/maps. Can we get the ip_address exposed from the created vm to access?