From 6fb802cc05b116e244f9ed27fc3bf71f7832fc50 Mon Sep 17 00:00:00 2001 From: daniele Date: Tue, 2 Apr 2024 18:33:01 +0200 Subject: [PATCH] Fix with toset --- 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