Add method to delete and update computes

This commit is contained in:
Julien Duponchelle committed 2016-05-25 11:28:13 +02:00
1 parent 2c72452c91
commit dbda3fc8fc
7 files changed
+143 -5

No files matched your search

+10
View File
@@ -117,6 +117,16 @@ class Controller:
self.notification.emit("compute.updated", self._computes[compute_id].__json__())
return self._computes[compute_id]
@asyncio.coroutine
def delete_compute(self, compute_id):
"""
Delete a compute node
:param compute_id: Compute server identifier
"""
compute = self.get_compute(compute_id)
del self._computes[compute_id]
self.notification.emit("compute.deleted", compute.__json__())
@property
def notification(self):
"""