Skip to content

Commit

Permalink
Fix syntax error in local block of listing 3.7/madlibs.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
DustinAlandzes authored Sep 24, 2021
1 parent d90ec00 commit 4463022
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chapter3/listing3.7/madlibs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ variable "num_files" {

locals {
uppercase_words = {for k,v in var.words : k => [for s in v : upper(s)]}

}

resource "random_shuffle" "random_nouns" {
count = var.num_files
Expand All @@ -41,4 +41,4 @@ resource "random_shuffle" "random_adverbs" {
resource "random_shuffle" "random_numbers" {
count = var.num_files
input = local.uppercase_words["numbers"]
}
}

0 comments on commit 4463022

Please sign in to comment.