mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
PEP8, documentation update, test fix
This commit is contained in:
1 parent
50fea669b5
commit
70faf76c10
20 files changed
+69
-54
No files matched your search
@@ -51,7 +51,6 @@ class PortManager:
|
||||
else:
|
||||
self._console_host = host
|
||||
|
||||
assert not hasattr(PortManager, "_instance")
|
||||
PortManager._instance = self
|
||||
|
||||
@classmethod
|
||||
|
||||
@@ -428,7 +428,7 @@ class VirtualBoxVM(BaseVM):
|
||||
|
||||
log.info("VirtualBox VM '{name}' [{uuid}] has set the VM name to '{vmname}'".format(name=self.name, uuid=self.uuid, vmname=vmname))
|
||||
# TODO: test linked clone
|
||||
#if self._linked_clone:
|
||||
# if self._linked_clone:
|
||||
# yield from self._modify_vm('--name "{}"'.format(vmname))
|
||||
self._vmname = vmname
|
||||
|
||||
|
||||
@@ -89,7 +89,7 @@ def interfaces():
|
||||
import netifaces
|
||||
for interface in netifaces.interfaces():
|
||||
results.append({"id": interface,
|
||||
"name": interface})
|
||||
"name": interface})
|
||||
except ImportError:
|
||||
return
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user