Send node.updated event and tests are green

Fix #524
This commit is contained in:
Julien Duponchelle
2016-05-16 21:12:32 +02:00
parent cb70cfecd7
commit a496aaab9e
3 changed files with 7 additions and 7 deletions

View File

@ -105,9 +105,7 @@ class BaseNode:
def status(self, status):
self._node_status = status
if status in ("started", "stopped", "suspended"):
self.project.emit("node.{status}".format(status=status), {"node_id": self.id})
self.project.emit("node.updated", self) # FIXME: should we send this when we just start/stop/suspend a node?
self.project.emit("node.updated", self)
@property
def command_line(self):