fix(vmware): using map instead of list for disk definiton

This commit is contained in:
Philippe Caseiro 2023-07-05 09:51:34 +02:00
parent 0adadb706c
commit 6097ca652d
1 changed files with 2 additions and 3 deletions

View File

@ -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
}
}