Skip to content

Commit

Permalink
fix: weird bug with coalesce both empty strings
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeyheath committed Dec 4, 2024
1 parent 44905d3 commit ec77da9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terraform/modules/happy-stack-eks/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ module "services" {
source = "../happy-service-eks"

image_tag = lookup(var.image_tags, each.key, var.image_tag)
image_uri = coalesce(each.value.image_uri, var.image_uri)
image_uri = length(each.value.image_uri) + length(var.image_uri) == 0 ? "" : coalesce(each.value.image_uri, var.image_uri)
tag_mutability = each.value.tag_mutability
scan_on_push = each.value.scan_on_push
container_name = each.value.name
Expand Down

0 comments on commit ec77da9

Please sign in to comment.