@cryptotaxi247 / netdata-1 / commits / 56533db9d

Fix codacy

Patrick Koenig committed Jun 11, 2017 at 10:26 UTC 56533db9dd5eeaa338beb8afe37fab2eafc538d4
1 file changed +3 -2
python.d/smartd_log.chart.py
+3 -2
@@ -198,11 +198,12 @@ class Service(SimpleService):
198 return result
199
200 # Use configured attributes, if present. If something goes wrong we don't care.
201 + order = ORDER
202 try:
202 - ORDER = [attr for attr in self.attr.split() if attr in SMART_ATTR.keys()] or ORDER
203 + order = [attr for attr in self.attr.split() if attr in SMART_ATTR.keys()] or ORDER
204 except Exception:
205 pass
205 - self.order = [''.join(['attrid', i]) for i in ORDER]
206 + self.order = [''.join(['attrid', i]) for i in order]
207 self.definitions = dict()
208 units = 'raw' if self.raw_values else 'normalized'
209