varnish plugin: change .read() to .communicate()
Ilya committed
Jan 15, 2017 at 04:15 UTC
513beb8d36bc1b54b9208dcd250b4518cbc2ddd7
1 file changed
+1
-1
python.d/varnish.chart.py
+1
-1
@@ -235,7 +235,7 @@ class Service(SimpleService):
235
except OSError:
236
return None
237
238
- raw_data = reply.stdout.read()
238
+ raw_data = reply.communicate()[0]
239
240
if not raw_data:
241
return None