Commit 111bdaa5 authored by Daniele Venzano's avatar Daniele Venzano

Do not try to get host information for hosts that do not exist yes

parent 7939fc12
......@@ -95,7 +95,10 @@ class DockerEngineBackend(zoe_master.backends.base.BaseBackend):
"""Get the platform state."""
platform_stats = ClusterStats()
for host_conf in self.docker_config: # type: DockerHostConfig
node_stats = _checker.host_stats[host_conf.name]
try:
node_stats = _checker.host_stats[host_conf.name]
except KeyError:
continue
platform_stats.nodes.append(node_stats)
platform_stats.timestamp = time.time()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment