fix(vmware): adding name param to network definitions

This commit is contained in:
Philippe Caseiro 2023-07-05 09:49:30 +02:00
parent 0fad70363b
commit 0adadb706c
1 changed files with 2 additions and 1 deletions

View File

@ -11,6 +11,7 @@ variable "vms" {
})) }))
network_interfaces = map(object( network_interfaces = map(object(
{ {
name = string
mac = string mac = string
} }
)) ))
@ -51,7 +52,7 @@ data "vsphere_resource_pool" "pool" {
data "vsphere_network" "network" { data "vsphere_network" "network" {
count = length(var.vms.network_interfaces) 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 datacenter_id = data.vsphere_datacenter.datacenter.id
} }