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: