Fix Incorrect vboxmanage sudo command

Fix #247
This commit is contained in:
Julien Duponchelle 2015-06-26 10:47:52 +02:00
parent 389788cfdc
commit 2ccb30eeb5

View File

@ -97,7 +97,7 @@ class VirtualBox(BaseManager):
vbox_user = self.config.get_section_config("VirtualBox").get("vbox_user")
if vbox_user:
# 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)
else:
process = yield from asyncio.create_subprocess_exec(*command, stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE)