Skip to content

Commit 1843d94

Browse files
committed
fix prefix
1 parent a594613 commit 1843d94

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

services/director/src/simcore_service_director/registry_proxy.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,9 @@ async def _list_repositories_gen(
274274

275275
while True:
276276
if "Link" in headers:
277-
next_path = str(headers["Link"]).split(";")[0].strip("<>")
277+
next_path = (
278+
str(headers["Link"]).split(";")[0].strip("<>").removeprefix("/v2/")
279+
)
278280
prefetch_task = asyncio.create_task(
279281
registry_request(app, path=next_path)
280282
)
@@ -301,7 +303,9 @@ async def list_image_tags_gen(
301303
tags, headers = await registry_request(app, path=path) # initial call
302304
while True:
303305
if "Link" in headers:
304-
next_path = str(headers["Link"]).split(";")[0].strip("<>")
306+
next_path = (
307+
str(headers["Link"]).split(";")[0].strip("<>").removeprefix("/v2/")
308+
)
305309
prefetch_task = asyncio.create_task(
306310
registry_request(app, path=next_path)
307311
)

0 commit comments

Comments
 (0)