Skip to content

Commit

Permalink
fix: Add default for tag lookup in job queue resources. (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattaltberg authored Jul 4, 2022
1 parent 4c63500 commit edb1b75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ resource "aws_batch_job_queue" "this" {
scheduling_policy_arn = try(each.value.scheduling_policy_arn, aws_batch_scheduling_policy.this[each.key].arn)
compute_environments = [for env in aws_batch_compute_environment.this : env.arn]

tags = merge(var.tags, lookup(each.value, "tags"))
tags = merge(var.tags, lookup(each.value, "tags", {}))
}

################################################################################
Expand All @@ -251,7 +251,7 @@ resource "aws_batch_scheduling_policy" "this" {
}
}

tags = merge(var.tags, lookup(each.value, "tags"))
tags = merge(var.tags, lookup(each.value, "tags", {}))
}

################################################################################
Expand Down

0 comments on commit edb1b75

Please sign in to comment.