Skip to content

Commit

Permalink
fix: Fix error thrown when git path cannot be found during module ind…
Browse files Browse the repository at this point in the history
…exing

Issue #535
  • Loading branch information
MatthewJohn committed Aug 29, 2024
1 parent de983eb commit 2b4d159
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terrareg/module_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ def process_upload(self):

# Ensure base directory exists
if not os.path.isdir(self.module_directory):
raise PathDoesNotExistError(f"Base module could not be found (git path: {self._module_version.git_path})")
raise PathDoesNotExistError(f"Base module could not be found (git path: {self._module_version.module_provider.git_path})")

# Generate the archive, unless the module has a git clone URL and
# the config for deleting externally hosted artifacts is enabled.
Expand Down

0 comments on commit 2b4d159

Please sign in to comment.