mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-05 06:41:13 +02:00
Make sure nodes send the right notification when started, stopped or suspended.
This commit is contained in:
1 parent
51738e19c3
commit
5b604da33a
6 files changed
+20
-8
No files matched your search
@@ -105,7 +105,9 @@ class BaseNode:
|
||||
def status(self, status):
|
||||
|
||||
self._node_status = status
|
||||
self._project.emit("node.updated", self)
|
||||
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?
|
||||
|
||||
@property
|
||||
def command_line(self):
|
||||
|
||||
Reference in new issue
Block a user