[GITLAB] - A technical upgrade is planned on Thursday the 1st of July at noon on our GITLAB server.

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
else:
raise ZoeException('Unsupported URL scheme for Swarm')
try:
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