fix(vmware): fup

This commit is contained in:
Philippe Caseiro 2023-07-05 10:24:20 +02:00
parent c97f6436f5
commit 5cc615bf6c
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ data "vsphere_network" "network" {
resource "vsphere_virtual_machine" "vm" { resource "vsphere_virtual_machine" "vm" {
for_each = var.vms for_each = var.vms
iterator = "machine" iterator = "machine"
name = "${machine}.${machine.value.domain}" name = "${machine.key}.${machine.value.domain}"
resource_pool_id = data.vsphere_resource_pool.id resource_pool_id = data.vsphere_resource_pool.id
datastore_id = data.vsphere_datastore.id datastore_id = data.vsphere_datastore.id
folder = machine.folder folder = machine.folder