From aa7c198d7fb71c89f3c4e64f658c66d99cd79b8e Mon Sep 17 00:00:00 2001 From: Ethan Knox Date: Thu, 2 Dec 2021 15:45:03 -0500 Subject: [PATCH] un-walrused --- palm/plugins/dbt/dbt_containerizer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/palm/plugins/dbt/dbt_containerizer.py b/palm/plugins/dbt/dbt_containerizer.py index 85c146f..36928fa 100644 --- a/palm/plugins/dbt/dbt_containerizer.py +++ b/palm/plugins/dbt/dbt_containerizer.py @@ -123,7 +123,8 @@ def determine_profile_strategy(cls, project_path: "Path") -> Tuple[str, str]: the host and container volume mount values """ container_default = "/root/.dbt" - if profile_path := os.getenv("DBT_PROFILES_DIR"): + profile_path = os.getenv("DBT_PROFILES_DIR", None) + if profile_path: profiles_dir = Path(profile_path) if not profiles_dir.exists(): raise AbortPalm("Your host has a non-existant DBT_PROFILES_DIR value!")