mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 14:01:15 +02:00
Send event when adding compute node or modify it (for server sumary)
This commit is contained in:
5 files changed
+29
-14
No files matched your search
@@ -92,7 +92,7 @@ class Compute:
|
||||
if name is not None:
|
||||
self._name = name
|
||||
elif self._id == "local":
|
||||
self._name = "local"
|
||||
self._name = "Local"
|
||||
else:
|
||||
self._name = "{}://{}:{}".format(self._protocol, self._host, self._port)
|
||||
|
||||
@@ -199,6 +199,7 @@ class Compute:
|
||||
|
||||
self._notifications = asyncio.async(self._connect_notification())
|
||||
self._connected = True
|
||||
self._controller.notification.emit("compute.updated", self.__json__())
|
||||
|
||||
@asyncio.coroutine
|
||||
def _connect_notification(self):
|
||||
|
||||
Reference in new issue
Block a user