Skip to content

Commit 812008d

Browse files
author
Andrei Neagu
committed
refactor
1 parent 2f8cd50 commit 812008d

File tree

1 file changed

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

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,9 @@ def _get_self_container_ip() -> str:
121121
async def _get_self_container() -> str:
122122
ip = _get_self_container_ip()
123123

124-
transport = httpx.AsyncHTTPTransport(uds="/var/run/docker.sock")
125-
async with httpx.AsyncClient(transport=transport) as client:
124+
async with httpx.AsyncClient(
125+
transport=httpx.AsyncHTTPTransport(uds="/var/run/docker.sock")
126+
) as client:
126127
response = await client.get("http://localhost/containers/json")
127128
for entry in response.json():
128129
if ip in json.dumps(entry):

0 commit comments

Comments
 (0)