Skip to content

Commit ea28ebb

Browse files
committed
Add a decode parameter to the events command
This will ensure compatibility with the previous versions of docker-py. Signed-off-by: Christophe Labouisse <[email protected]>
1 parent 9bd71b2 commit ea28ebb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docker/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ def diff(self, container):
569569
return self._result(self._get(self._url("/containers/{0}/changes".
570570
format(container))), True)
571571

572-
def events(self, since=None, until=None, filters=None):
572+
def events(self, since=None, until=None, filters=None, decode=None):
573573
if isinstance(since, datetime):
574574
since = utils.datetime_to_timestamp(since)
575575

@@ -587,7 +587,7 @@ def events(self, since=None, until=None, filters=None):
587587

588588
return self._stream_helper(self.get(self._url('/events'),
589589
params=params, stream=True),
590-
decode=True)
590+
decode=decode)
591591

592592
def execute(self, container, cmd, detach=False, stdout=True, stderr=True,
593593
stream=False, tty=False):

0 commit comments

Comments
 (0)