Skip to content

Commit

Permalink
fix: Get missing username from etcd
Browse files Browse the repository at this point in the history
  • Loading branch information
jopemachine committed Aug 5, 2024
1 parent 6ab5e4d commit d809b31
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/ai/backend/manager/container_registry/gitlab.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,15 @@

class GitLabRegistry_v2(BaseContainerRegistry):
async def fetch_repositories(self, sess: aiohttp.ClientSession) -> AsyncIterator[str]:
access_token, gitlab_project = (
name, access_token, gitlab_project = (
self.registry_info["username"],
self.registry_info["password"],
self.registry_info["gitlab_project"],
)

encoded_project = urllib.parse.quote(gitlab_project, safe="")
encoded_project_id = urllib.parse.quote(f"{name}/{gitlab_project}", safe="")
repo_list_url = (
f"https://gitlab.com/api/v4/projects/{encoded_project}/registry/repositories"
f"https://gitlab.com/api/v4/projects/{encoded_project_id}/registry/repositories"
)

headers = {
Expand Down

0 comments on commit d809b31

Please sign in to comment.