Support for link event, fix link not correctly deleted

This commit is contained in:
Julien Duponchelle committed 2016-05-18 18:37:18 +02:00
1 parent fa0af7f4a2
commit 54747ee618
12 files changed
+92 -32

No files matched your search

+1 -1
View File
@@ -151,7 +151,7 @@ class Controller:
:param kwargs: See the documentation of Project
"""
if project_id not in self._projects:
project = Project(project_id=project_id, **kwargs)
project = Project(project_id=project_id, controller=self, **kwargs)
self._projects[project.id] = project
for compute_server in self._computes.values():
yield from project.add_compute(compute_server)