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

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): ...@@ -95,7 +95,10 @@ class DockerEngineBackend(zoe_master.backends.base.BaseBackend):
"""Get the platform state.""" """Get the platform state."""
platform_stats = ClusterStats() platform_stats = ClusterStats()
for host_conf in self.docker_config: # type: DockerHostConfig for host_conf in self.docker_config: # type: DockerHostConfig
try:
node_stats = _checker.host_stats[host_conf.name] node_stats = _checker.host_stats[host_conf.name]
except KeyError:
continue
platform_stats.nodes.append(node_stats) platform_stats.nodes.append(node_stats)
platform_stats.timestamp = time.time() 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