Skip to content

Commit 36cb185

Browse files
committed
mypy fix
1 parent 5cd4e42 commit 36cb185

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

services/director/src/simcore_service_director/registry_proxy.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ async def list_image_tags(app: FastAPI, image_key: str) -> list[str]:
374374
return image_tags
375375

376376

377-
_DOCKER_CONTENT_DIGEST_HEADER = "Docker-Content-Digest"
377+
_DOCKER_CONTENT_DIGEST_HEADER: Final[str] = "Docker-Content-Digest"
378378

379379

380380
async def get_image_digest(app: FastAPI, image: str, tag: str) -> str | None:
@@ -388,7 +388,8 @@ async def get_image_digest(app: FastAPI, image: str, tag: str) -> str | None:
388388
_, headers = await registry_request(app, path=path, method="GET", use_cache=True)
389389

390390
headers = headers or {}
391-
return headers.get(_DOCKER_CONTENT_DIGEST_HEADER, None)
391+
docker_digest: str | None = headers.get(_DOCKER_CONTENT_DIGEST_HEADER, None)
392+
return docker_digests
392393

393394

394395
async def get_image_labels(

0 commit comments

Comments
 (0)