mirror of
https://github.com/GNS3/gns3-server
synced 2025-02-02 19:30:55 +00:00
parent
389788cfdc
commit
2ccb30eeb5
@ -97,7 +97,7 @@ class VirtualBox(BaseManager):
|
|||||||
vbox_user = self.config.get_section_config("VirtualBox").get("vbox_user")
|
vbox_user = self.config.get_section_config("VirtualBox").get("vbox_user")
|
||||||
if vbox_user:
|
if vbox_user:
|
||||||
# TODO: test & review this part
|
# TODO: test & review this part
|
||||||
sudo_command = "sudo -i -u {}".format(vbox_user) + " ".join(command)
|
sudo_command = "sudo -i -u {} ".format(vbox_user) + " ".join(command)
|
||||||
process = yield from asyncio.create_subprocess_shell(sudo_command, stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE)
|
process = yield from asyncio.create_subprocess_shell(sudo_command, stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE)
|
||||||
else:
|
else:
|
||||||
process = yield from asyncio.create_subprocess_exec(*command, stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE)
|
process = yield from asyncio.create_subprocess_exec(*command, stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE)
|
||||||
|
Loading…
Reference in New Issue
Block a user