Commit a91f2235 authored by Daniele Venzano's avatar Daniele Venzano
Browse files

Make the Zoe master more resistant to Swarm being offline

parent d627bb1f
Pipeline #4546 passed with stages
in 2 minutes and 55 seconds
......@@ -104,7 +104,10 @@ class SwarmClient:
manager = url
raise ZoeException('Unsupported URL scheme for Swarm')
self.cli = docker.DockerClient(base_url=manager, version="auto", tls=tls)
except docker.errors.DockerException:
raise ZoeException("Cannot connect to Docker")
def info(self) -> ClusterStats:
"""Retrieve Swarm statistics. The Docker API returns a mess difficult to parse."""
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