mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 14:01:15 +02:00
Find Dynamips version before hypervisor launch and do not require Dynamips v0.2.23
This commit is contained in:
1 parent
5a3b502024
commit
c57b0cbb53
3 files changed
+41
-14
No files matched your search
@@ -73,7 +73,7 @@ async def subprocess_check_output(*args, cwd=None, env=None, stderr=False):
|
||||
proc = await asyncio.create_subprocess_exec(*args, stderr=asyncio.subprocess.PIPE, cwd=cwd, env=env)
|
||||
output = await proc.stderr.read()
|
||||
else:
|
||||
proc = await asyncio.create_subprocess_exec(*args, stdout=asyncio.subprocess.PIPE, cwd=cwd, env=env)
|
||||
proc = await asyncio.create_subprocess_exec(*args, stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.DEVNULL, cwd=cwd, env=env)
|
||||
output = await proc.stdout.read()
|
||||
if output is None:
|
||||
return ""
|
||||
|
||||
Reference in new issue
Block a user