From 80f76e9e6e9d8871337d12c4551e4f158533776b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 25 Jan 2023 20:11:38 -0500 Subject: [PATCH] change `exposure_content` to `source_content` (#6739) (#6740) * change `exposure_content` to `source_content` * Adding changelog Co-authored-by: Leah Antkiewicz (cherry picked from commit b0651b13b521dc19166ef03ced79ffc639f22cfd) Co-authored-by: Matthew Beall --- .changes/unreleased/Fixes-20230125-191739.yaml | 6 ++++++ core/dbt/contracts/util.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changes/unreleased/Fixes-20230125-191739.yaml diff --git a/.changes/unreleased/Fixes-20230125-191739.yaml b/.changes/unreleased/Fixes-20230125-191739.yaml new file mode 100644 index 00000000000..fff39574ed9 --- /dev/null +++ b/.changes/unreleased/Fixes-20230125-191739.yaml @@ -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" diff --git a/core/dbt/contracts/util.py b/core/dbt/contracts/util.py index fb2af2dac59..d8b166b1d93 100644 --- a/core/dbt/contracts/util.py +++ b/core/dbt/contracts/util.py @@ -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: