From 0adadb706cae36385838ec22258f657433d454c8 Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Wed, 5 Jul 2023 09:49:30 +0200 Subject: [PATCH] fix(vmware): adding name param to network definitions --- modules/vmware/main.tf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 }