Browse Source

"powerdns" module update

lgz 7 years ago
parent
commit
4fa279a127
1 changed files with 3 additions and 3 deletions
  1. 3 3
      python.d/powerdns.chart.py

+ 3 - 3
python.d/powerdns.chart.py

@@ -2,9 +2,10 @@
 # Description: powerdns netdata python.d module
 # Author: l2isbad
 
-from base import UrlService
 from json import loads
 
+from bases.FrameworkServices.UrlService import UrlService
+
 priority = 60000
 retries = 60
 # update_every = 3
@@ -54,5 +55,4 @@ class Service(UrlService):
         data = self._get_raw_data()
         if not data:
             return None
-        return dict([(d['name'], d['value']) for d in loads(data)])
-
+        return dict((d['name'], d['value']) for d in loads(data))