Skip to content

Commit

Permalink
Fix issue introduced by refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
tatiana committed Jul 17, 2023
1 parent ccc87f0 commit 47beb83
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cosmos/dbt/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def load(self, method: LoadMode = LoadMode.AUTOMATIC, execution_mode: str = "loc
if self.project.is_manifest_available():
self.load_from_dbt_manifest()
return
elif execution_mode in ("local", "virtualenv") and self.is_profile_yml_available():
elif execution_mode in ("local", "virtualenv") and self.project.is_profile_yml_available():
try:
self.load_via_dbt_ls()
return
Expand Down
4 changes: 2 additions & 2 deletions cosmos/dbt/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ def is_manifest_available(self) -> bool:
"""
Checks if the `dbt` project manifest is set and if the file exists.
"""
return self.project.manifest_path and Path(self.project.manifest_path).exists()
return self.manifest_path and Path(self.manifest_path).exists()

def is_profile_yml_available(self) -> bool:
"""
Checks if the `dbt` profiles.yml file exists.
"""
return Path(self.project.profile_path).exists()
return Path(self.profile_path).exists()

0 comments on commit 47beb83

Please sign in to comment.