From 7ef75291a5971d0e1880463273b69db9b9410b70 Mon Sep 17 00:00:00 2001 From: Noah Spannbauer Date: Sun, 24 Aug 2025 10:24:27 -0500 Subject: [PATCH] updating modules --- modules/container_app/container_app.tf | 4 ++-- modules/container_app/variables.tf | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/container_app/container_app.tf b/modules/container_app/container_app.tf index bbdabe7..6ffa9bc 100644 --- a/modules/container_app/container_app.tf +++ b/modules/container_app/container_app.tf @@ -12,7 +12,7 @@ resource "azurerm_container_app" "container_app_app" { for_each = length(var.init_containers) > 0 ? var.init_containers : [] iterator = init_container content { - command = init_container.value.command != null ? [init_container.value.command] : [] + command = init_container.value.command != null ? init_container.value.command : [] cpu = init_container.value.cpu image = "${init_container.value.image}" memory = init_container.value.memory @@ -44,7 +44,7 @@ resource "azurerm_container_app" "container_app_app" { for_each = var.containers iterator = container content { - command = container.value.command != null ? [container.value.command] : [] + command = container.value.command != null ? container.value.command : [] cpu = container.value.cpu image = "${container.value.image}" memory = container.value.memory diff --git a/modules/container_app/variables.tf b/modules/container_app/variables.tf index bf53cef..0b32e2f 100644 --- a/modules/container_app/variables.tf +++ b/modules/container_app/variables.tf @@ -5,7 +5,7 @@ variable "app_subdomain_name" { variable "containers" { type = list(object({ - command = optional(string) + command = optional(list(string)) cpu = optional(string) envs = optional(list(object({ name = string @@ -69,7 +69,7 @@ variable "ingress_transport" { variable "init_containers" { default = [] type = list(object({ - command = optional(string) + command = optional(list(string)) cpu = optional(string) envs = optional(list(object({ name = string