Skip to content

Commit 41b88ad

Browse files
committed
capture output so it's not sent to stderr
Signed-off-by: Zen <[email protected]>
1 parent 65bf042 commit 41b88ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/zenlib/namespace/namespace.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def new_id_map(id_type, pid, id, nsid, count=1, *args, failures=0):
2424
raise ValueError("id_type must be 'uid' or 'gid")
2525
cmd_args = [f"new{id_type}map", str(pid), str(id), str(nsid), str(count), *map(str, args)]
2626
try:
27-
return run(cmd_args, check=True)
27+
return run(cmd_args, check=True, capture_output=True)
2828
except CalledProcessError as e:
2929
if failures > 5:
3030
raise e

0 commit comments

Comments
 (0)