Skip to content

Commit

Permalink
fix: allow null service_account (#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shabirmean authored Sep 20, 2022
1 parent c382631 commit c95056c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/instance_template/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ resource "google_compute_instance_template" "tpl" {
}

dynamic "service_account" {
for_each = [var.service_account]
for_each = var.service_account == null ? [] : [var.service_account]
content {
email = lookup(service_account.value, "email", null)
scopes = lookup(service_account.value, "scopes", null)
Expand Down

0 comments on commit c95056c

Please sign in to comment.