From c5b0c4703d3496f4f1fc6945f654266ab9943af5 Mon Sep 17 00:00:00 2001 From: Piotr Sierkin Date: Tue, 11 Jul 2023 10:18:26 +0200 Subject: [PATCH] chore: revert changes --- locals.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locals.tf b/locals.tf index fb44e6f..d06f859 100644 --- a/locals.tf +++ b/locals.tf @@ -45,7 +45,7 @@ locals { }]...) view_grants = merge([for view_grant in var.view_grants : { - for privilege in view_grant.privileges : "${view_grant.database_name}/${view_grant.schema_name}/${view_grant.view_name}/${privilege}" => { + for privilege in view_grant.privileges : "${view_grant.database_name}/${view_grant.schema_name}/${coalesce(view_grant.view_name, "on_future")}/${privilege}" => { database_name = view_grant.database_name schema_name = view_grant.schema_name view_name = view_grant.view_name