From 5cc615bf6cf1eb70bac24e445107c330b5f9cc4f Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Wed, 5 Jul 2023 10:24:20 +0200 Subject: [PATCH] fix(vmware): fup --- modules/vmware/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/vmware/main.tf b/modules/vmware/main.tf index 3750fd9..85b7334 100644 --- a/modules/vmware/main.tf +++ b/modules/vmware/main.tf @@ -55,7 +55,7 @@ data "vsphere_network" "network" { resource "vsphere_virtual_machine" "vm" { for_each = var.vms iterator = "machine" - name = "${machine}.${machine.value.domain}" + name = "${machine.key}.${machine.value.domain}" resource_pool_id = data.vsphere_resource_pool.id datastore_id = data.vsphere_datastore.id folder = machine.folder