Skip to content

Commit 92ccaee

Browse files
committed
podman: don't affect --shell stdout with podman image umout
The `podman image umount` actually dumps the image ID to stdout. Complements: b626045 Closes: #1218
1 parent c15bd39 commit 92ccaee

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

mock/py/mockbuild/podman.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def mounted_image(self):
101101
finally:
102102
logger.info("umounting image %s (%s) with podman image umount",
103103
self.image, mountpoint)
104-
subprocess.run(cmd_umount, check=True)
104+
subprocess.run(cmd_umount, capture_output=True, check=True)
105105

106106
@traceLog()
107107
def cp(self, destination, tar_cmd):
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
The `--shell` standard output is no longer affected by `podman image unmount`
2+
output executed in the background (prints out the image ID).

0 commit comments

Comments
 (0)