Skip to content

Commit

Permalink
Fix the issue when the top level domain was trimmed (#466)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: allburov <allburov@gmail.com>
  • Loading branch information
beliaev-maksim and allburov authored Jan 13, 2025
1 parent 568707e commit e386952
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion artifactory.py
Original file line number Diff line number Diff line change
Expand Up @@ -2463,7 +2463,7 @@ def _get_all(self, lazy: bool, url=None, key="name", cls=None):
"return: A list of found objects
"""
if cls is Project:
request_url = self.drive.rstrip("/artifactory") + url
request_url = re.sub(r"/artifactory$", "", self.drive) + url
else:
request_url = self.drive + url
response = self.session.get(request_url, auth=self.auth)
Expand Down

0 comments on commit e386952

Please sign in to comment.