From a59a14126b2cfa9c6b2a525902bfcd33d779d29d Mon Sep 17 00:00:00 2001 From: entechlog <38563714+entechlog@users.noreply.github.com> Date: Tue, 7 Jun 2022 23:08:03 -0700 Subject: [PATCH] changes to create schema for use_common_masking_policy_schema_only use case (#36) --- macros/snow-mask/create-policy/create_masking_policy.sql | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/macros/snow-mask/create-policy/create_masking_policy.sql b/macros/snow-mask/create-policy/create_masking_policy.sql index 89ae437..4570393 100644 --- a/macros/snow-mask/create-policy/create_masking_policy.sql +++ b/macros/snow-mask/create-policy/create_masking_policy.sql @@ -32,10 +32,8 @@ {% set current_policy_name = masking_policy[2] | string %} - {%- if (var('use_common_masking_policy_db', 'False')|upper in ['TRUE','YES']) -%} - {%- if (var('create_masking_policy_schema', 'True')|upper in ['TRUE','YES']) -%} - {% do adapter.create_schema(api.Relation.create(database=masking_policy_db, schema=masking_policy_schema)) %} - {% endif %} + {%- if (var('create_masking_policy_schema', 'True')|upper in ['TRUE','YES']) -%} + {% do adapter.create_schema(api.Relation.create(database=masking_policy_db, schema=masking_policy_schema)) %} {% endif %} {% set call_masking_policy_macro = context["create_masking_policy_" | string ~ current_policy_name | string] %}