typo in macro
This commit is contained in:
parent
f2e447ba60
commit
75b85073ae
1 changed files with 7 additions and 11 deletions
|
|
@ -8,17 +8,13 @@ To understand better, check:
|
||||||
*/
|
*/
|
||||||
{% macro generate_schema_name(custom_schema_name, node) -%}
|
{% macro generate_schema_name(custom_schema_name, node) -%}
|
||||||
|
|
||||||
{% macro generate_schema_name(custom_schema_name, node) -%}
|
{%- set default_schema = target.schema -%}
|
||||||
|
{%- set is_ci_execution = env_var("IS_CI_EXECUTION", "0") | int -%}
|
||||||
|
{%- set ci_schema_name = env_var("CI_SCHEMA_NAME", "ci_default") -%}
|
||||||
|
|
||||||
{%- set default_schema = target.schema -%}
|
{%- if is_ci_execution == 1 -%} {{ ci_schema_name }}
|
||||||
{%- set is_ci_execution = env_var("IS_CI_EXECUTION", "0") | int -%}
|
{%- elif custom_schema_name is none -%} {{ default_schema }}
|
||||||
{%- set ci_schema_name = env_var("CI_SCHEMA_NAME", "ci_default") -%}
|
{%- else -%} {{ custom_schema_name | trim }}
|
||||||
|
{%- endif -%}
|
||||||
{%- if is_ci_execution == 1 -%} {{ ci_schema_name }}
|
|
||||||
{%- elif custom_schema_name is none -%} {{ default_schema }}
|
|
||||||
{%- else -%} {{ custom_schema_name | trim }}
|
|
||||||
{%- endif -%}
|
|
||||||
|
|
||||||
{%- endmacro %}
|
|
||||||
|
|
||||||
{%- endmacro %}
|
{%- endmacro %}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue