Skip to content

Commit 553622a

Browse files
committed
Merge branch '535-use-pat-token-for-git-based-hosting' into 'main'
fix: Fix error thrown when git path cannot be found during module indexing Closes #535 See merge request pub/terrareg!415
2 parents cbec553 + 2b4d159 commit 553622a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: terrareg/module_extractor.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ def process_upload(self):
676676

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

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

0 commit comments

Comments
 (0)