From 545a3d2b58bad8f086c58b551a466e12f2904f42 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Thu, 22 Jan 2015 10:57:08 +0100 Subject: [PATCH] PEP8 --- gns3server/modules/virtualbox/virtualbox_vm.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gns3server/modules/virtualbox/virtualbox_vm.py b/gns3server/modules/virtualbox/virtualbox_vm.py index b44c9107..6ef5c2d2 100644 --- a/gns3server/modules/virtualbox/virtualbox_vm.py +++ b/gns3server/modules/virtualbox/virtualbox_vm.py @@ -70,12 +70,12 @@ class VirtualBoxVM(BaseVM): self._adapter_start_index = 0 self._adapter_type = "Intel PRO/1000 MT Desktop (82540EM)" - #TODO: finish adapters support - #self.adapters = 2 # creates 2 adapters by default + # TODO: finish adapters support + # self.adapters = 2 # creates 2 adapters by default def __json__(self): - #TODO: send more info + # TODO: send more info # {"name": self._name, # "vmname": self._vmname, # "adapters": self.adapters, @@ -96,7 +96,7 @@ class VirtualBoxVM(BaseVM): command.extend(args) try: if self._vbox_user and self._vbox_user.strip(): - #TODO: test & review this part + # TODO: test & review this part sudo_command = "sudo -i -u {}".format(self._vbox_user.strip()) + " ".join(command) process = yield from asyncio.create_subprocess_shell(sudo_command, stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE) else: @@ -194,7 +194,7 @@ class VirtualBoxVM(BaseVM): log.info("VirtualBox VM '{name}' [{uuid}] created".format(name=self.name, uuid=self.uuid)) if self._linked_clone: - #TODO: finish linked clone support + # TODO: finish linked clone support if self.uuid and os.path.isdir(os.path.join(self.working_dir, self._vmname)): vbox_file = os.path.join(self.working_dir, self._vmname, self._vmname + ".vbox") self._execute("registervm", [vbox_file])