1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-25 16:28:11 +00:00

Fix bug when reading docker images

Fix #398
This commit is contained in:
Julien Duponchelle 2016-01-21 18:03:51 +01:00
parent c280fd5fb8
commit 5deb584a03

View File

@ -49,8 +49,8 @@ class Docker(BaseManager):
if not self._connected:
try:
self._connector = aiohttp.connector.UnixConnector(self._server_url)
yield from self.query("GET", "info")
self._connected = True
yield from self.query("GET", "info")
except (aiohttp.errors.ClientOSError, FileNotFoundError):
self._connected = False
raise DockerError("Can't connect to docker daemon")