From 2ccb30eeb55ff68d7d674affb743fb719f56b89c Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Fri, 26 Jun 2015 10:47:52 +0200 Subject: [PATCH] Fix Incorrect vboxmanage sudo command Fix #247 --- gns3server/modules/virtualbox/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/modules/virtualbox/__init__.py b/gns3server/modules/virtualbox/__init__.py index 890ad6e7..0b7ed20c 100644 --- a/gns3server/modules/virtualbox/__init__.py +++ b/gns3server/modules/virtualbox/__init__.py @@ -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)