Skip to content

Commit

Permalink
fix: Replace list with tolist function for working with terraform…
Browse files Browse the repository at this point in the history
  • Loading branch information
nmiculinic authored May 4, 2021
1 parent c12c186 commit 3ecdc20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workers_launch_template.tf
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ resource "aws_launch_template" "workers_launch_template" {
}

dynamic "instance_market_options" {
for_each = lookup(var.worker_groups_launch_template[count.index], "market_type", null) == null ? [] : list(lookup(var.worker_groups_launch_template[count.index], "market_type", null))
for_each = lookup(var.worker_groups_launch_template[count.index], "market_type", null) == null ? [] : tolist([lookup(var.worker_groups_launch_template[count.index], "market_type", null)])
content {
market_type = instance_market_options.value
}
Expand Down

0 comments on commit 3ecdc20

Please sign in to comment.