Commit a91f2235 authored by Daniele Venzano's avatar Daniele Venzano

Make the Zoe master more resistant to Swarm being offline

parent d627bb1f
......@@ -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
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment