]> arthur.barton.de Git - netdata.git/commitdiff
varnish plugin: change .read() to .communicate()
authorIlya <ilyamaschenko@gmail.com>
Sat, 14 Jan 2017 19:15:51 +0000 (04:15 +0900)
committerIlya <ilyamaschenko@gmail.com>
Sat, 14 Jan 2017 19:15:51 +0000 (04:15 +0900)
python.d/varnish.chart.py

index b5285b2a6f45f82acd847dde49878aab57f5f9c4..a6fa8b76263d3c4a6655098d7d1f3ad5c90000f7 100644 (file)
@@ -235,7 +235,7 @@ class Service(SimpleService):
         except OSError:
             return None
 
-        raw_data = reply.stdout.read()
+        raw_data = reply.communicate()[0]
 
         if not raw_data:
             return None