Skip to content

Commit

Permalink
Allow one_shot=False with stream=True
Browse files Browse the repository at this point in the history
Co-authored-by: Milas Bowman <devnull@milas.dev>
Signed-off-by: Andy Roxby <107427605+aroxby-wayscript@users.noreply.github.com>
  • Loading branch information
aroxby-wayscript and milas committed Feb 3, 2023
1 parent c16cb57 commit 56fbf7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/api/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -1158,7 +1158,7 @@ def stats(self, container, decode=None, stream=True, one_shot=None):
)
params['one-shot'] = one_shot
if stream:
if one_shot is not None:
if one_shot:
raise errors.InvalidArgument(
'one_shot is only available in conjunction with '
'stream=False'
Expand Down

0 comments on commit 56fbf7c

Please sign in to comment.