diff --git a/modules/vmware/main.tf b/modules/vmware/main.tf index b5aaca1..3552257 100644 --- a/modules/vmware/main.tf +++ b/modules/vmware/main.tf @@ -11,6 +11,7 @@ variable "vms" { })) network_interfaces = map(object( { + name = string mac = string } )) @@ -51,7 +52,7 @@ data "vsphere_resource_pool" "pool" { data "vsphere_network" "network" { count = length(var.vms.network_interfaces) - name = var.networks[count.index].key + name = var.networks[count.index].name datacenter_id = data.vsphere_datacenter.datacenter.id }