Skip to content

Commit

Permalink
chore: upgrade for_each dynamic behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
iru committed Oct 6, 2023
1 parent e87e787 commit 8012b21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/services/cloud-connector/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ resource "google_cloud_run_service" "cloud_connector" {
}

dynamic "env" {
for_each = var.sysdig_secure_api_token == "" ? [] : [1]
for_each = var.sysdig_secure_api_token == "" ? to_set([]) : to_set([1])

content {
name = "SECURE_API_TOKEN"
Expand All @@ -88,7 +88,7 @@ resource "google_cloud_run_service" "cloud_connector" {
}

dynamic "env" {
for_each = var.sysdig_secure_api_token_secret_id == "" ? [] : [1]
for_each = var.sysdig_secure_api_token_secret_id == "" ? to_set([]) : to_set([1])

content {
name = "SECURE_API_TOKEN"
Expand Down

0 comments on commit 8012b21

Please sign in to comment.