From a58b1feaaa1d346edc5e9fd25e1205609cb99b4c Mon Sep 17 00:00:00 2001 From: Michelle Ark Date: Thu, 8 Dec 2022 15:55:46 -0500 Subject: [PATCH] merge with Profile, run --- core/dbt/cli/main.py | 3 ++- core/dbt/tests/fixtures/project.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/core/dbt/cli/main.py b/core/dbt/cli/main.py index 551c0896e5a..bc5d0956c67 100644 --- a/core/dbt/cli/main.py +++ b/core/dbt/cli/main.py @@ -95,8 +95,9 @@ def cli(ctx, **kwargs): return # Profile + # TODO: fix flags.THREADS access profile = load_profile( - flags.PROJECT_DIR, flags.VARS, flags.PROFILE, flags.TARGET, flags.THREADS + flags.PROJECT_DIR, flags.VARS, flags.PROFILE, flags.TARGET, None ) # Project diff --git a/core/dbt/tests/fixtures/project.py b/core/dbt/tests/fixtures/project.py index fe97176cfb6..ffea566f4db 100644 --- a/core/dbt/tests/fixtures/project.py +++ b/core/dbt/tests/fixtures/project.py @@ -243,7 +243,7 @@ def selectors_yml(project_root, selectors): def adapter(unique_schema, project_root, profiles_root, profiles_yml, dbt_project_yml): # The profiles.yml and dbt_project.yml should already be written out args = Namespace( - profiles_dir=str(profiles_root), project_dir=str(project_root), target=None, profile=None + profiles_dir=str(profiles_root), project_dir=str(project_root), target=None, profile=None, threads=None ) flags.set_from_args(args, {}) runtime_config = RuntimeConfig.from_args(args)