X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=juju%2Futils.py;h=c3d7f23b949dd0d58a401e923c11f57810d57db4;hb=a658966b4a92191098770bf409edda84782d07cd;hp=78322e7923f22f5f0afc8b5cdd26dafc324141c3;hpb=efca4234627865400e0d2ab74a0f77bd6988c397;p=osm%2FN2VC.git diff --git a/juju/utils.py b/juju/utils.py index 78322e7..c3d7f23 100644 --- a/juju/utils.py +++ b/juju/utils.py @@ -1,5 +1,4 @@ import asyncio -import concurrent.futures import os from pathlib import Path @@ -45,8 +44,4 @@ async def read_ssh_key(loop): can be passed on to a model. ''' - ssh_key = await loop.run_in_executor( - concurrent.futures.ThreadPoolExecutor(), - _read_ssh_key - ) - return ssh_key + return await loop.run_in_executor(None, _read_ssh_key)