Fix small issue in dokcer plugin.

Change-Id: I7dda293fde999407a1bca7684b2ee777bfc7eddf
This commit is contained in:
Adrian Czarnecki 2021-03-24 08:12:33 -07:00
parent 9fd6d1ffc9
commit 4047310277
1 changed files with 1 additions and 1 deletions

View File

@ -299,7 +299,7 @@ class Docker(checks.AgentCheck):
with open(os.path.join(self.docker_root, "/proc/mounts"), 'r') as f:
mounts = map(lambda x: x.split(), f.read().splitlines())
cgroup_mounts = filter(lambda x: x[2] == "cgroup", mounts)
cgroup_mounts = list(filter(lambda x: x[2] == "cgroup", mounts))
if len(cgroup_mounts) == 0:
raise Exception("Can't find mounted cgroups. If you run the Agent inside a container,"
" please refer to the documentation.")