[hcl/en] fix syntax error (#5187)
All checks were successful
Trigger site build / deploy (push) Has been skipped
CI / lint (push) Successful in 18s

This commit is contained in:
Gustavo Adolfo Mejía Sánchez 2024-11-23 14:46:21 -05:00 committed by GitHub
parent c975a23edc
commit 0b375fe86c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -281,9 +281,9 @@ locals {
map = {for x in local.list : x => upper(x) } // "one":"ONE", "two":"TWO", "three":"THREE"
filtered_list = [for k, v in local.map : substr(v, 0, 2) if k != "two" } // "ON", "TH"
filtered_list = [for k, v in local.map : substr(v, 0, 2) if k != "two" ] // "ON", "TH"
prefixed_list = [for v in local.filtered_list : "pre-${k}" } // "pre-ON", "pre-TH"
prefixed_list = [for v in local.filtered_list : "pre-${v}" ] // "pre-ON", "pre-TH"
joined_list = join(local.upper_list,local. filtered_list) // "ONE", "TWO", "THREE", "pre-ON", "pre-TH"