Skip to content

Commit

Permalink
Merge pull request containers#192 from pohlt/pohlt-patch-1
Browse files Browse the repository at this point in the history
fix: Container.stats for non-stream mode
  • Loading branch information
rhatdan authored Jul 26, 2022
2 parents f46011c + ce55ec8 commit cdf1219
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion podman/domain/containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ def stats(self, **kwargs) -> Union[Sequence[Dict[str, bytes]], bytes]:

with io.StringIO() as buffer:
for entry in response.text:
buffer.writer(json.dumps(entry) + "\n")
buffer.write(json.dumps(entry) + "\n")
return buffer.getvalue()

@staticmethod
Expand Down

0 comments on commit cdf1219

Please sign in to comment.