Update __init__.py

This commit is contained in:
Pascal Vizeli 2017-06-29 21:10:42 +02:00 committed by GitHub
parent 7a470bb3ac
commit 3c4240a8a8

View File

@ -199,7 +199,7 @@ class DockerBase(object):
container.remove(force=True) container.remove(force=True)
async def remove(self): async def remove(self):
"""Remove docker container.""" """Remove docker images."""
if self._lock.locked(): if self._lock.locked():
_LOGGER.error("Can't excute remove while a task is in progress") _LOGGER.error("Can't excute remove while a task is in progress")
return False return False
@ -208,7 +208,7 @@ class DockerBase(object):
return await self.loop.run_in_executor(None, self._remove) return await self.loop.run_in_executor(None, self._remove)
def _remove(self): def _remove(self):
"""remove docker container. """remove docker images.
Need run inside executor. Need run inside executor.
""" """