Skip to content

Commit

Permalink
Merge pull request #37 from ethanknox-palmetto/hotfix/bye-bye-walrus
Browse files Browse the repository at this point in the history
Remove walrus operator
  • Loading branch information
ethanknox-palmetto authored Dec 2, 2021
2 parents 0f21526 + aa7c198 commit f54eb90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion palm/plugins/dbt/dbt_containerizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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!")
Expand Down

0 comments on commit f54eb90

Please sign in to comment.