From 6097ca652daff197a965defee555c688b23762d4 Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Wed, 5 Jul 2023 09:51:34 +0200 Subject: [PATCH] fix(vmware): using map instead of list for disk definiton --- modules/vmware/main.tf | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/vmware/main.tf b/modules/vmware/main.tf index 3552257..4ebc601 100644 --- a/modules/vmware/main.tf +++ b/modules/vmware/main.tf @@ -5,8 +5,7 @@ variable "vms" { cpu = number ram = number guest_id = string - disks = list(object({ - name = string + disks = map(object({ size = string })) network_interfaces = map(object( @@ -77,7 +76,7 @@ resource "vphere_virtual_virtual_machine" "vm" { dynamic "disk" { for_each = each.key.disks content { - label = each.key.name + label = each.key size = each.key.size } }