Skip to content

Commit

Permalink
Update podman demux handler to reflect changes in
Browse files Browse the repository at this point in the history
  • Loading branch information
tpapaioa committed Sep 20, 2024
1 parent 49d1a93 commit 619e625
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions broker/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -574,12 +574,13 @@ def from_ssh(cls, stdout, channel):
def from_duplexed_exec(cls, duplex_exec, runtime=None):
"""Create a Result object from a duplexed exec object from podman or docker."""
if runtime == "podman":
stdout, stderr = demux_output(duplex_exec[1])
status, (stdout, stderr) = duplex_exec
return cls(
status=duplex_exec[0],
status=status,
stdout=stdout.decode("utf-8"),
stderr=stderr.decode("utf-8"),
)

if duplex_exec.output[0]:
stdout = duplex_exec.output[0].decode("utf-8")
else:
Expand Down

0 comments on commit 619e625

Please sign in to comment.