Skip to content

Commit

Permalink
[Fix] dbt_cloud only need to add since v1.6.2
Browse files Browse the repository at this point in the history
Signed-off-by: Kent Huang <[email protected]>
  • Loading branch information
kentwelcome authored and wcchang1115 committed Sep 12, 2023
1 parent 3c695dd commit 518a7ae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion piperider_cli/dbt/list_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,12 @@ def __init__(self):
"project_env_vars": {},
"cli_vars": {},
"dependencies": None,
"dbt_cloud": None,
}

if dbt_version >= '1.6.2':
# Since dbt-core v1.6.2 'dbt_cloud' is required in RuntimeConfig
data['dbt_cloud'] = None

found_restrict_access = any(field.name == 'restrict_access' for field in fields(RuntimeConfig))
found_packages_specified_path = any(field.name == 'packages_specified_path' for field in fields(RuntimeConfig))
if found_restrict_access:
Expand Down

0 comments on commit 518a7ae

Please sign in to comment.