projects
/
osm
/
N2VC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Pass through event loop
[osm/N2VC.git]
/
juju
/
utils.py
diff --git
a/juju/utils.py
b/juju/utils.py
index
c3d7f23
..
c0a500c
100644
(file)
--- a/
juju/utils.py
+++ b/
juju/utils.py
@@
-3,7
+3,7
@@
import os
from pathlib import Path
from pathlib import Path
-async def execute_process(*cmd, log=None):
+async def execute_process(*cmd, log=None
, loop=None
):
'''
Wrapper around asyncio.create_subprocess_exec.
'''
Wrapper around asyncio.create_subprocess_exec.
@@
-13,7
+13,7
@@
async def execute_process(*cmd, log=None):
stdin=asyncio.subprocess.PIPE,
stdout=asyncio.subprocess.PIPE,
stderr=asyncio.subprocess.PIPE,
stdin=asyncio.subprocess.PIPE,
stdout=asyncio.subprocess.PIPE,
stderr=asyncio.subprocess.PIPE,
- )
+
loop=loop
)
stdout, stderr = await p.communicate()
if log:
log.debug("Exec %s -> %d", cmd, p.returncode)
stdout, stderr = await p.communicate()
if log:
log.debug("Exec %s -> %d", cmd, p.returncode)