diff --git a/terraform/main.tf b/terraform/main.tf index e106866..15be071 100644 --- a/terraform/main.tf +++ b/terraform/main.tf @@ -69,7 +69,7 @@ module "vms" { data_image_source = "" depends = [ - opennebula_virtual_network.vnet["internet"].id + opennebula_virtual_network.vnet[each.value.depends[0]].id ] }