diff --git a/.changes/unreleased/Fixes-20230505-132545.yaml b/.changes/unreleased/Fixes-20230505-132545.yaml new file mode 100644 index 00000000000..8a7dd9bc2af --- /dev/null +++ b/.changes/unreleased/Fixes-20230505-132545.yaml @@ -0,0 +1,6 @@ +kind: Fixes +body: Fix inverted `--print/--no-print` flag +time: 2023-05-05T13:25:45.949997-06:00 +custom: + Author: dbeatty10 thomasgjerdekog + Issue: "7517" diff --git a/core/dbt/context/base.py b/core/dbt/context/base.py index 99c1e09769a..1ac9fc239f0 100644 --- a/core/dbt/context/base.py +++ b/core/dbt/context/base.py @@ -652,7 +652,7 @@ def print(msg: str) -> str: {% endmacro %}" """ - if not get_flags().PRINT: + if get_flags().PRINT: print(msg) return ""