mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Fix tests.
This commit is contained in:
1 parent
e52775fa3a
commit
5d704aa478
2 files changed
+7
-7
No files matched your search
@@ -375,13 +375,13 @@ class Node:
|
||||
setattr(self, prop, kwargs[prop])
|
||||
|
||||
self._list_ports()
|
||||
# We send notif only if object has changed
|
||||
#if old_json != self.__json__():
|
||||
# self.project.controller.notification.emit("node.updated", self.__json__())
|
||||
if update_compute:
|
||||
data = self._node_data(properties=compute_properties)
|
||||
response = yield from self.put(None, data=data)
|
||||
yield from self.parse_node_response(response.json)
|
||||
elif old_json != self.__json__():
|
||||
# We send notif only if object has changed
|
||||
self.project.controller.notification.emit("node.updated", self.__json__())
|
||||
self.project.dump()
|
||||
|
||||
@asyncio.coroutine
|
||||
|
||||
Reference in new issue
Block a user