Skip to content

Commit

Permalink
Merge branch '535-use-pat-token-for-git-based-hosting' into 'main'
Browse files Browse the repository at this point in the history
fix: Fix error thrown when git path cannot be found during module indexing

Closes #535

See merge request pub/terrareg!415
  • Loading branch information
MatthewJohn committed Sep 4, 2024
2 parents cbec553 + 2b4d159 commit 553622a
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 553622a

Please sign in to comment.