From b36e8f84fb358a06747f0f20277b3b6c055f99e0 Mon Sep 17 00:00:00 2001 From: Daniele Pompa <55095241+daniele20tab@users.noreply.github.com> Date: Tue, 2 Apr 2024 18:44:39 +0200 Subject: [PATCH] Fix with toset (#311) Co-authored-by: daniele --- terraform/vault/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform/vault/main.tf b/terraform/vault/main.tf index 9490fe97..2d372c4a 100644 --- a/terraform/vault/main.tf +++ b/terraform/vault/main.tf @@ -16,7 +16,7 @@ provider "vault" { token = var.vault_token dynamic "auth_login_oidc" { - for_each = var.vault_token == "" ? ["default"] : [] + for_each = toset(var.vault_token == "" ? ["default"] : []) content { role = auth_login_oidc.value