Browse Source

smartd_log: use `del_dimension` instead of `hide_dimension` to… (#6547)

Ilya Mashchenko 5 years ago
parent
commit
b56f03cb71
1 changed files with 1 additions and 2 deletions
  1. 1 2
      collectors/python.d.plugin/smartd_log/smartd_log.chart.py

+ 1 - 2
collectors/python.d.plugin/smartd_log/smartd_log.chart.py

@@ -750,5 +750,4 @@ class Service(SimpleService):
             if not chart_id or chart_id not in self.charts:
                 continue
 
-            # TODO: can't delete dimension
-            self.charts[chart_id].hide_dimension('{0}_{1}'.format(disk.name, attr.name))
+            self.charts[chart_id].del_dimension('{0}_{1}'.format(disk.name, attr.name))