@cryptotaxi247 / netdata-1 / commits / baf26ca57

autodetection now works with `name` instead of `override_name`.

paulfantom committed Jul 6, 2016 at 09:38 UTC baf26ca57206f06f2cafbd9c2dc8b884cfa5256c
1 file changed +2 -2
python.d/python_modules/base.py
+2 -2
@@ -58,7 +58,7 @@ class BaseService(threading.Thread):
58 :param config: dict
59 """
60 try:
61 - self.override_name = config.pop('override_name')
61 + self.override_name = config.pop('name')
62 except KeyError:
63 pass
64 self.update_every = int(config.pop('update_every'))
@@ -603,6 +603,6 @@ class ExecutableService(SimpleService):
603 else:
604 self.error("Wrong command. Probably not on whitelist.")
605 return False
606 - if len(self._get_data()) == 0:
606 + if self._get_data() is None or len(self._get_data()) == 0:
607 return False
608 return True