Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit 9cc2d3d

Browse files
authored
Merge branch 'master' into DX-713
2 parents 8d4a4f7 + 496fd4f commit 9cc2d3d

File tree

4 files changed

+159
-83
lines changed

4 files changed

+159
-83
lines changed

.github/workflows/stale.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ jobs:
2727
stale-pr-label: 'stale'
2828
close-issue-message: "Although we are closing this issue as stale, it's not gone forever. Issues can be reopened if there is renewed community interest. Just add a comment and it will be reopened for triage."
2929
close-pr-message: "Although we are closing this pull request as stale, it's not gone forever. PRs can be reopened if there is renewed community interest. Just add a comment and it will be reopened for triage."
30+
close-issue-reason: "not_planned"

data_diff/__main__.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,16 +277,25 @@ def main(conf, run, **kw):
277277
state = kw.pop("state", None)
278278
if state:
279279
state = os.path.expanduser(state)
280+
profiles_dir_override = kw.pop("dbt_profiles_dir", None)
281+
if profiles_dir_override:
282+
profiles_dir_override = os.path.expanduser(profiles_dir_override)
283+
project_dir_override = kw.pop("dbt_project_dir", None)
284+
if project_dir_override:
285+
project_dir_override = os.path.expanduser(project_dir_override)
280286
if kw["dbt"]:
281287
dbt_diff(
282-
profiles_dir_override=kw["dbt_profiles_dir"],
283-
project_dir_override=kw["dbt_project_dir"],
288+
profiles_dir_override=profiles_dir_override,
289+
project_dir_override=project_dir_override,
284290
is_cloud=kw["cloud"],
285291
dbt_selection=kw["select"],
286292
state=state,
287293
)
288294
else:
289-
return _data_diff(**kw, state=state)
295+
return _data_diff(dbt_project_dir=project_dir_override,
296+
dbt_profiles_dir=profiles_dir_override,
297+
state=state,
298+
**kw)
290299
except Exception as e:
291300
logging.error(e)
292301
if kw["debug"]:

0 commit comments

Comments
 (0)