Commit 6d1da377 authored by Daniele Venzano's avatar Daniele Venzano 🏇

Merge branch 'devel/fixes' into 'master'

Make the Zoe master more resistant to Swarm being offline

See merge request !22
parents d627bb1f a91f2235
......@@ -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