Skip to content

Commit

Permalink
update and refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Noahnc committed Oct 24, 2023
1 parent b787bd2 commit 501f7e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion infrapatch/core/utils/hcl_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def get_terraform_resources_from_file(self, tf_file: Path) -> list[VersionedTerr
return found_resources

def get_all_terraform_files(self, root: Path = None) -> list[Path]:
if not root.is_dir():
if not root.exists():
raise Exception(f"Path '{root}' is not a directory.")
search_string = "*.tf"
if root is not None:
Expand Down

0 comments on commit 501f7e0

Please sign in to comment.