diff --git a/dockerplugin.py b/dockerplugin.py index 98697c2..2a9dc04 100755 --- a/dockerplugin.py +++ b/dockerplugin.py @@ -32,8 +32,8 @@ import sys import re +STREAM_DOCKER_PY_VERSION = (1, 6, 0) -STREAM_DOCKER_PY_VERSION=(1, 6, 0) def _c(c): """A helper method for representing a container in messages. If the given @@ -207,11 +207,11 @@ def run(self): if not self._stream: if not self._feed: self._feed = self._client.stats(self._container, - decode=True) + decode=True) self._stats = self._feed.next() else: self._stats = self._client.stats(self._container, - decode=True,stream=False) + decode=True, stream=False) # Reset failure count on successfull read from the stats API. failures = 0 except Exception, e: