Skip to content

Commit

Permalink
Remove check for dbt binary, that is handled elsewhere
Browse files Browse the repository at this point in the history
  • Loading branch information
tatiana committed Jul 5, 2024
1 parent d304a7d commit f69ece9
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions cosmos/dbt/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import json
import os
import platform
import shutil
import tempfile
import zlib
from dataclasses import dataclass, field
Expand Down Expand Up @@ -353,7 +352,6 @@ def load(
def run_dbt_ls(
self, dbt_cmd: str, project_path: Path, tmp_dir: Path, env_vars: dict[str, str]
) -> dict[str, DbtNode]:

"""Runs dbt ls command and returns the parsed nodes."""
ls_command = [self.dbt_cmd, "ls", "--output", "json"]

Expand Down Expand Up @@ -443,9 +441,6 @@ def load_via_dbt_ls_without_cache(self) -> None:
if not self.profile_config:
raise CosmosLoadDbtException("Unable to load project via dbt ls without a profile config.")

if not shutil.which(self.dbt_cmd):
raise CosmosLoadDbtException(f"Unable to find the dbt executable: {self.dbt_cmd}")

with tempfile.TemporaryDirectory() as tmpdir:
logger.debug(f"Content of the dbt project dir {project_path}: `{os.listdir(project_path)}`")
tmpdir_path = Path(tmpdir)
Expand Down

0 comments on commit f69ece9

Please sign in to comment.