diff options
author | farax4de <3010347+farax4de@users.noreply.github.com> | 2023-03-31 19:51:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-31 17:51:28 +0000 |
commit | a5e23e73cadcd4ef603c241d5f8b3f09c373cd51 (patch) | |
tree | 9079c7e7b8047aeb11ac9f3f4038f97ba9127952 /collectors | |
parent | 1b2465afdfc09f3fb8347cd270097c80668b9662 (diff) |
fix #14841 Exception funktion call Rados.mon_command() (#14844)
Diffstat (limited to 'collectors')
-rw-r--r-- | collectors/python.d.plugin/ceph/ceph.chart.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/collectors/python.d.plugin/ceph/ceph.chart.py b/collectors/python.d.plugin/ceph/ceph.chart.py index 494eef45d4..4bcbe1979d 100644 --- a/collectors/python.d.plugin/ceph/ceph.chart.py +++ b/collectors/python.d.plugin/ceph/ceph.chart.py @@ -331,7 +331,7 @@ class Service(SimpleService): return json.loads(self.cluster.mon_command(json.dumps({ 'prefix': 'df', 'format': 'json' - }), '')[1].decode('utf-8')) + }), b'')[1].decode('utf-8')) def _get_osd_df(self): """ @@ -341,7 +341,7 @@ class Service(SimpleService): return json.loads(self.cluster.mon_command(json.dumps({ 'prefix': 'osd df', 'format': 'json' - }), '')[1].decode('utf-8').replace('-nan', '"-nan"')) + }), b'')[1].decode('utf-8').replace('-nan', '"-nan"')) def _get_osd_perf(self): """ @@ -351,7 +351,7 @@ class Service(SimpleService): return json.loads(self.cluster.mon_command(json.dumps({ 'prefix': 'osd perf', 'format': 'json' - }), '')[1].decode('utf-8')) + }), b'')[1].decode('utf-8')) def _get_osd_pool_stats(self): """ @@ -363,7 +363,7 @@ class Service(SimpleService): return json.loads(self.cluster.mon_command(json.dumps({ 'prefix': 'osd pool stats', 'format': 'json' - }), '')[1].decode('utf-8')) + }), b'')[1].decode('utf-8')) def get_osd_perf_infos(osd_perf): |