Skip to content

Commit 9b41a31

Browse files
author
Andrei Neagu
committed
mypy
1 parent 9a052a3 commit 9b41a31

File tree

1 file changed

+2
-1
lines changed
  • services/agent/src/simcore_service_agent/services

1 file changed

+2
-1
lines changed

services/agent/src/simcore_service_agent/services/backup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ async def _get_self_container() -> str:
127127
response = await client.get("http://localhost/containers/json")
128128
for entry in response.json():
129129
if ip in json.dumps(entry):
130-
return entry["Id"]
130+
container_id: str = entry["Id"]
131+
return container_id
131132

132133
msg = "Could not determine self container ID"
133134
raise RuntimeError(msg)

0 commit comments

Comments
 (0)