Send event when adding compute node or modify it (for server sumary)

This commit is contained in:
Julien Duponchelle committed 2016-05-23 18:44:20 +02:00
1 parent f6a3899603
commit 0aa81b5fa5
5 files changed
+29 -14

No files matched your search

+2 -1
View File
@@ -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):