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

@@ -310,6 +310,7 @@ class Router(BaseVM):
# router is already closed
return
log.debug('Router "{name}" [{id}] is closing'.format(name=self._name, id=self._id))
if self._dynamips_id in self._dynamips_ids[self._project.id]:
self._dynamips_ids[self._project.id].remove(self._dynamips_id)