diff --git a/modules/vmware/main.tf b/modules/vmware/main.tf index 1b4995a..c7cfe3e 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 = "machines" + iterator = "machine" name = "${machine.key}.${machine.value.domain}" resource_pool_id = data.vsphere_resource_pool.id datastore_id = data.vsphere_datastore.id