summaryrefslogtreecommitdiffstats
path: root/collectors
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2020-02-24 07:31:28 +0000
committerGitHub <noreply@github.com>2020-02-24 16:31:28 +0900
commit8762d2e4ed4dfc73b3fffa4b1a82ad6a8ed551b4 (patch)
treef6af7b70482d008ed86ca060a3bd85e9821cca6e /collectors
parent312fad8d296df7e506017640a47d1a2004a25331 (diff)
openldap: fix dict access with python3 (#8162)
Fixes the following error: Feb 22 19:38:23 eve netdata[11810]: 2020-02-22 19:38:23: python.d WARNING: plugin[main] : openldap[localhost] : unhandled exception on check : TypeError("'dict_values' object is not subscriptable"), skipping the job
Diffstat (limited to 'collectors')
-rw-r--r--collectors/python.d.plugin/openldap/openldap.chart.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/collectors/python.d.plugin/openldap/openldap.chart.py b/collectors/python.d.plugin/openldap/openldap.chart.py
index d577e71739..0ded784277 100644
--- a/collectors/python.d.plugin/openldap/openldap.chart.py
+++ b/collectors/python.d.plugin/openldap/openldap.chart.py
@@ -199,7 +199,7 @@ class Service(SimpleService):
try:
if result_type == 101:
- val = int(result_data[0][1].values()[0][0])
+ val = int(list(result_data[0][1].values())[0][0])
except (ValueError, IndexError) as error:
self.debug(error)
continue