Skip to content

Commit

Permalink
change exposure_content to source_content (#6739) (#6740)
Browse files Browse the repository at this point in the history
* change `exposure_content` to `source_content`

* Adding changelog

Co-authored-by: Leah Antkiewicz <[email protected]>
(cherry picked from commit b0651b1)

Co-authored-by: Matthew Beall <[email protected]>
  • Loading branch information
github-actions[bot] and Mathyoub authored Jan 26, 2023
1 parent a2e7249 commit 80f76e9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changes/unreleased/Fixes-20230125-191739.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Fixes
body: '[Regression] exposure_content referenced incorrectly'
time: 2023-01-25T19:17:39.942081-05:00
custom:
Author: Mathyoub
Issue: "6738"
2 changes: 1 addition & 1 deletion core/dbt/contracts/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ def upgrade_manifest_json(manifest: dict) -> dict:
if "root_path" in exposure_content:
del exposure_content["root_path"]
for source_content in manifest.get("sources", {}).values():
if "root_path" in exposure_content:
if "root_path" in source_content:
del source_content["root_path"]
for macro_content in manifest.get("macros", {}).values():
if "root_path" in macro_content:
Expand Down

0 comments on commit 80f76e9

Please sign in to comment.