Fix Compute name is lost at save

Fix #562
This commit is contained in:
Julien Duponchelle committed 2016-06-08 14:25:11 +02:00
1 parent add546158f
commit 1b530bde3f
4 files changed
+6 -1

No files matched your search

+1
View File
@@ -60,6 +60,7 @@ class Controller:
Save the controller configuration on disk
"""
data = {"computes": [{"host": c.host,
"name": c.name,
"port": c.port,
"protocol": c.protocol,
"user": c.user,
+1
View File
@@ -123,6 +123,7 @@ class Compute:
self._session.close()
self._connected = False
self._controller.notification.emit("compute.updated", self.__json__())
self._controller.save()
@asyncio.coroutine
def close(self):