Skip to content

Commit edb1b75

Browse files
authored
fix: Add default for tag lookup in job queue resources. (#2)
1 parent 4c63500 commit edb1b75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ resource "aws_batch_job_queue" "this" {
226226
scheduling_policy_arn = try(each.value.scheduling_policy_arn, aws_batch_scheduling_policy.this[each.key].arn)
227227
compute_environments = [for env in aws_batch_compute_environment.this : env.arn]
228228

229-
tags = merge(var.tags, lookup(each.value, "tags"))
229+
tags = merge(var.tags, lookup(each.value, "tags", {}))
230230
}
231231

232232
################################################################################
@@ -251,7 +251,7 @@ resource "aws_batch_scheduling_policy" "this" {
251251
}
252252
}
253253

254-
tags = merge(var.tags, lookup(each.value, "tags"))
254+
tags = merge(var.tags, lookup(each.value, "tags", {}))
255255
}
256256

257257
################################################################################

0 commit comments

Comments
 (0)