File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
services/director/src/simcore_service_director Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -20,18 +20,18 @@ async def docker_client() -> AsyncIterator[aiodocker.docker.Docker]:
2020
2121
2222async def swarm_get_number_nodes () -> int :
23- async with docker_client () as client : # pylint: disable=not-async-context-manager
23+ async with docker_client () as client :
2424 nodes = await client .nodes .list ()
2525 return len (nodes )
2626
2727
2828async def swarm_has_manager_nodes () -> bool :
29- async with docker_client () as client : # pylint: disable=not-async-context-manager
29+ async with docker_client () as client :
3030 nodes = await client .nodes .list (filters = {"role" : "manager" })
3131 return bool (nodes )
3232
3333
3434async def swarm_has_worker_nodes () -> bool :
35- async with docker_client () as client : # pylint: disable=not-async-context-manager
35+ async with docker_client () as client :
3636 nodes = await client .nodes .list (filters = {"role" : "worker" })
3737 return bool (nodes )
You can’t perform that action at this time.
0 commit comments