@cryptotaxi247 / netdata-1 / commits / 1608d61e0

smartd_log: py2 compatibility fix (#4584)

Ilya Mashchenko committed Nov 8, 2018 at 23:46 UTC 1608d61e01d8fdb82267b45c90cea97d7cf7d44b
1 file changed +1 -1
collectors/python.d.plugin/smartd_log/smartd_log.chart.py
+1 -1
@@ -551,7 +551,7 @@ class BaseDisk:
551
552 @handle_error(TypeError)
553 def populate_attrs(self):
554 - self.attrs.clear()
554 + self.attrs = list()
555 line = self.log_file.read()
556 for value in self.parser(line):
557 self.attrs.append(attribute_factory(value))