fix(vmware): adding name param to network definitions
This commit is contained in:
parent
0fad70363b
commit
0adadb706c
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue