Prevent multiple projects with the same ID to be created.

This commit is contained in:
Jeremy committed 2015-02-25 16:05:57 -07:00
1 parent 349d9d4540
commit 54fc873be5
10 files changed
+61 -27

No files matched your search

+5 -4
View File
@@ -72,6 +72,7 @@ class VPCSVM(BaseVM):
@asyncio.coroutine
def close(self):
log.debug("VPCS {name} [{id}] is closing".format(name=self._name, id=self._id))
if self._console:
self._manager.port_manager.release_tcp_port(self._console)
self._console = None
@@ -297,10 +298,10 @@ class VPCSVM(BaseVM):
port_number=port_number))
self._ethernet_adapter.add_nio(port_number, nio)
log.info("VPCS {name} {id}]: {nio} added to port {port_number}".format(name=self._name,
id=self.id,
nio=nio,
port_number=port_number))
log.info("VPCS {name} [{id}]: {nio} added to port {port_number}".format(name=self._name,
id=self.id,
nio=nio,
port_number=port_number))
return nio
def port_remove_nio_binding(self, port_number):