Fix when config file doesn't have computes section (#1062)

This commit is contained in:
ziajka authored and Julien Duponchelle committed 2017-06-07 10:50:40 +02:00
1 parent 88cd804274
commit e0b519eced
2 files changed
+12 -2

No files matched your search

+2 -2
View File
@@ -82,7 +82,7 @@ class Controller:
password=server_config.get("password", ""),
force=True)
except aiohttp.web_exceptions.HTTPConflict as e:
log.fatal("Can't acces to the local server, make sure anything else is not running on the same port")
log.fatal("Can't access to the local server, make sure anything else is not running on the same port")
sys.exit(1)
for c in computes:
try:
@@ -176,7 +176,7 @@ class Controller:
if "gns3vm" in data:
self.gns3vm.settings = data["gns3vm"]
return data["computes"]
return data.get("computes", [])
@asyncio.coroutine
def load_projects(self):