Skip to content

Commit

Permalink
[hcl/en] fix syntax error (#5187)
Browse files Browse the repository at this point in the history
  • Loading branch information
Athesto authored Nov 23, 2024
1 parent c975a23 commit 0b375fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hcl.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 0b375fe

Please sign in to comment.