Fix random failure related to ports

This commit is contained in:
Julien Duponchelle committed 2015-01-21 22:21:01 +01:00
1 parent 8d9da999e6
commit f3e07d5ad9
4 files changed
+6 -23

No files matched your search

-1
View File
@@ -167,4 +167,3 @@ class VPCSHandler:
vm = vpcs_manager.get_vm(request.match_info["uuid"])
nio = vm.port_remove_nio_binding(int(request.match_info["port_id"]))
response.set_status(204)
-18
View File
@@ -45,24 +45,6 @@ class PortManager:
else:
self._console_host = host
@classmethod
def instance(cls):
"""
Singleton to return only one instance of BaseManager.
:returns: instance of Manager
"""
if not hasattr(cls, "_instance") or cls._instance is None:
cls._instance = cls()
return cls._instance
@classmethod
@asyncio.coroutine # FIXME: why coroutine?
def destroy(cls):
cls._instance = None
@property
def console_host(self):