Add endpoint to list the compute nodes

This commit is contained in:
Julien Duponchelle committed 2016-04-19 16:53:41 +02:00
1 parent f5e5cf5059
commit c8c61f2ae8
4 files changed
+45 -2

No files matched your search

+2 -2
View File
@@ -48,14 +48,14 @@ class Controller:
Save the controller configuration on disk
"""
data = {
"computes": [ {
"computes": [{
"host": c.host,
"port": c.port,
"protocol": c.protocol,
"user": c.user,
"password": c.password,
"compute_id": c.id
} for c in self._computes.values() ],
} for c in self._computes.values()],
"version": __version__
}
os.makedirs(os.path.dirname(self._config_file), exist_ok=True)