Skip to content

Commit

Permalink
Fix code syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume GILL committed Oct 4, 2020
1 parent 36b5b2a commit 91c9823
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions workers_launch_template.tf
Original file line number Diff line number Diff line change
Expand Up @@ -309,13 +309,9 @@ resource "aws_launch_template" "workers_launch_template" {
var.worker_groups_launch_template[count.index],
"cpu_credits",
local.workers_group_defaults["cpu_credits"]
) != null ? [{}] : []
) != null ? [lookup(var.worker_groups_launch_template[count.index], "cpu_credits", local.workers_group_defaults["cpu_credits"])] : []
content {
cpu_credits = lookup(
var.worker_groups_launch_template[count.index],
"cpu_credits",
local.workers_group_defaults["cpu_credits"]
)
cpu_credits = credit_specification.value
}
}

Expand Down

0 comments on commit 91c9823

Please sign in to comment.