mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-23 01:01:31 +03:00
Correct an issue if the docker lib is not installed
This commit is contained in:
parent
9e8f311ed0
commit
16a55836eb
@ -95,11 +95,10 @@ class Plugin(GlancesPlugin):
|
||||
"""Connect to the Docker server."""
|
||||
global docker_tag
|
||||
|
||||
ret = docker.from_env()
|
||||
if not docker_tag:
|
||||
return None
|
||||
|
||||
# TODO: manage connection error
|
||||
|
||||
return ret
|
||||
return docker.from_env()
|
||||
|
||||
def reset(self):
|
||||
"""Reset/init the stats."""
|
||||
|
Loading…
Reference in New Issue
Block a user