Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Simone Rossi
main
Commits
111bdaa5
Commit
111bdaa5
authored
Aug 30, 2018
by
Daniele Venzano
Browse files
Do not try to get host information for hosts that do not exist yes
parent
7939fc12
Changes
1
Hide whitespace changes
Inline
Side-by-side
zoe_master/backends/docker/backend.py
View file @
111bdaa5
...
...
@@ -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
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment